|
|
@ -26,7 +26,7 @@ export declare class Node { |
|
|
|
|
|
|
|
|
|
|
|
export declare class Tree { |
|
|
|
export declare class Tree { |
|
|
|
root: Node; |
|
|
|
root: Node; |
|
|
|
addNode(node: Node, newNode: Node, index: number):void; |
|
|
|
addNode(node: Node, newNode: Node, index?: number):void; |
|
|
|
isRoot(node: Node): boolean; |
|
|
|
isRoot(node: Node): boolean; |
|
|
|
getRoot(): Node; |
|
|
|
getRoot(): Node; |
|
|
|
clear():void; |
|
|
|
clear():void; |
|
|
|