Home > @rushstack/lookup-by-path > IReadonlyLookupByPath
IReadonlyLookupByPath interface
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
The readonly component of LookupByPath, to simplify unit testing.
Signature:
export interface IReadonlyLookupByPath<TItem extends {}> extends Iterable<[string, TItem]>
Extends: Iterable<[string, TItem]>
Methods
Method | Description |
|---|---|
(BETA) Iterates over the entries in this trie. | |
(BETA) Iterates over the entries in this trie. | |
(BETA) Searches for the item associated with | |
(BETA) Searches for the item associated with | |
(BETA) Searches for the item for which the recorded prefix is the longest matching prefix of | |
(BETA) Retrieves the entry that exists exactly at the specified path, if any. | |
(BETA) Retrieves the trie node at the specified prefix, if it exists. | |
(BETA) Groups the provided map of info by the nearest entry in the trie that contains the path. If the path is not found in the trie, the info is ignored. | |
(BETA) Determines if an entry exists exactly at the specified path. |