devsite/node_modules/liquidjs/dist/util/operator-trie.d.ts

15 lines
360 B
TypeScript
Raw Permalink Normal View History

2024-07-08 01:49:38 +00:00
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 {};