summaryrefslogtreecommitdiff
path: root/node_modules/liquidjs/dist/util/operator-trie.d.ts
blob: b21050e21e75a3378a519a0e9d0c5879c097ecec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
interface TrieInput<T> {
    [key: string]: T;
}
interface TrieLeafNode<T> {
    data: T;
    end: true;
    needBoundary?: true;
}
export interface Trie<T> {
    [key: string]: Trie<T> | TrieLeafNode<T>;
}
export type TrieNode<T> = Trie<T> | TrieLeafNode<T>;
export declare function createTrie<T = any>(input: TrieInput<T>): Trie<T>;
export {};