From 6f20a4b9b19ab0af0aab4d63208107ad982d8723 Mon Sep 17 00:00:00 2001 From: Eatgrass Date: Mon, 28 Oct 2024 20:32:32 +0800 Subject: [PATCH 1/2] graphlib `children()` function should return array of string --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 2c3347b7..41c97061 100644 --- a/index.d.ts +++ b/index.d.ts @@ -29,7 +29,7 @@ declare module '@dagrejs/dagre' { setEdge(params: Edge, value?: string | { [key: string]: any }): Graph; setEdge(sourceId: string, targetId: string, value?: string | Label, name?: string): Graph; - children(parentName: string): string | undefined; + children(v: string): string[]; hasNode(name: string): boolean; neighbors(name: string): Array> | undefined; node(id: string | Label): Node; From dce4a8055a2d212a709ff861494dbd04b154ac19 Mon Sep 17 00:00:00 2001 From: Eatgrass Date: Mon, 28 Oct 2024 20:37:46 +0800 Subject: [PATCH 2/2] update param name --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 41c97061..e89f9cdb 100644 --- a/index.d.ts +++ b/index.d.ts @@ -29,7 +29,7 @@ declare module '@dagrejs/dagre' { setEdge(params: Edge, value?: string | { [key: string]: any }): Graph; setEdge(sourceId: string, targetId: string, value?: string | Label, name?: string): Graph; - children(v: string): string[]; + children(parentName: string): string[]; hasNode(name: string): boolean; neighbors(name: string): Array> | undefined; node(id: string | Label): Node;