Type aliases
KeyMatch
Key
Match<T>: { depth: number; edges: RadixNodeEdges<T>; hasValue: boolean; key: string; value: T | undefined }
Type parameters
Type declaration
-
depth: number
-
-
hasValue: boolean
-
key: string
-
value: T | undefined
Pruner
Pruner<T>
: (depth
: number, key
: string, hasValue
: boolean, value
: T, edges
: RadixNodeEdges<T>) => boolean
Type parameters
Type declaration
-
- (depth: number, key: string, hasValue: boolean, value: T, edges: RadixNodeEdges<T>): boolean
-
Parameters
-
depth: number
-
key: string
-
hasValue: boolean
-
value: T
-
Returns boolean
SearchRootMatch
Search
RootMatch<T>: { extraPrefix: string; searchRoot: RadixNode<T> }
Type parameters
Functions
decreasingPrefixesOf
- decreasingPrefixesOf(s: string): IterableIterator<string>
-
Parameters
Returns IterableIterator<string>
increasingPrefixesOf
- increasingPrefixesOf(s: string): IterableIterator<string>
-
Parameters
Returns IterableIterator<string>
longestSharedPrefix
- longestSharedPrefix(s1: string, s2: string): string | undefined
-
Parameters
Returns string | undefined
- the longest shared prefix of s1 and s2, undefined if no shared prefix
depth
key
hasValue
value
edges