From eae14f145c04713c11cd76f5bd92971c2940a99c Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 31 Aug 2021 11:10:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/utils/tree.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/core/utils/tree.ts b/typescript/core/utils/tree.ts index c26dd3fc6..c300ad100 100644 --- a/typescript/core/utils/tree.ts +++ b/typescript/core/utils/tree.ts @@ -42,7 +42,7 @@ export declare class Tree { nrPreOrderTraverse(callback: Function): void; postOrderTraverse(callback: Function): void; nrPostOrderTraverse(callback: Function): void; - static transformToArrayFormat(nodes: Node | Node[], pId: any): Node[]; + static transformToArrayFormat(nodes: T | T[], pId: any, childKey?: string): T[]; static arrayFormat(nodes: Node | Node[], pId: any): Node[]; static transformToTreeFormat(sNodes: T[]): Node[]; static treeFormat(sNodes: Node | Node[]): Node[];