UNPKG

259 BTypeScriptView Raw
1export declare class Tree {
2 nodes: {
3 [key: string]: Tree;
4 };
5 constructor();
6 insert(child: string, value?: Tree): Tree;
7 search(key: string): Tree | undefined;
8 display(logger?: any): void;
9}
10export default function tree(): Tree;