TrieNode<T>: {
    [K in string]?: TrieNode<T>
} & {
    value?: T[];
}

Defines the trie data structure. The value key is a specific list of items; all other string keys may refer to another TrieNode.

Type Parameters

  • T extends object