Skip to content

Commit 825efca

Browse files
authored
Merge pull request #456 from eatgrass/patch-1
graphlib `children()` function should return array of string
2 parents c1cf91c + dce4a80 commit 825efca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ declare module '@dagrejs/dagre' {
2929
setEdge(params: Edge, value?: string | { [key: string]: any }): Graph<T>;
3030
setEdge(sourceId: string, targetId: string, value?: string | Label, name?: string): Graph<T>;
3131

32-
children(parentName: string): string | undefined;
32+
children(parentName: string): string[];
3333
hasNode(name: string): boolean;
3434
neighbors(name: string): Array<Node<T>> | undefined;
3535
node(id: string | Label): Node<T>;

0 commit comments

Comments
 (0)