|
|
@ -43,8 +43,8 @@ export declare class Tree { |
|
|
|
postOrderTraverse(callback: Function): void; |
|
|
|
postOrderTraverse(callback: Function): void; |
|
|
|
nrPostOrderTraverse(callback: Function): void; |
|
|
|
nrPostOrderTraverse(callback: Function): void; |
|
|
|
static transformToArrayFormat<T>(nodes: T | T[], pId: any, childKey?: string): T[]; |
|
|
|
static transformToArrayFormat<T>(nodes: T | T[], pId: any, childKey?: string): T[]; |
|
|
|
static arrayFormat(nodes: Node | Node[], pId: any): Node[]; |
|
|
|
static arrayFormat<T>(nodes: T | T[], pId: any): T[]; |
|
|
|
static transformToTreeFormat<T>(sNodes: T[]): Node[]; |
|
|
|
static transformToTreeFormat<T>(sNodes: T[]): T[]; |
|
|
|
static treeFormat(sNodes: Node | Node[]): Node[]; |
|
|
|
static treeFormat<T>(sNodes: T | T[]): T[]; |
|
|
|
static traversal(array: Node[], callback: Function, pNode: Node): void; |
|
|
|
static traversal<T>(array: T[], callback: (index:number,node:T,pNode?:T)=> boolean | void, pNode?: T): void; |
|
|
|
} |
|
|
|
} |
|
|
|