Skip to content

Commit

Permalink
Merge pull request #456 from eatgrass/patch-1
Browse files Browse the repository at this point in the history
graphlib `children()` function should return array of string
  • Loading branch information
rustedgrail authored Dec 13, 2024
2 parents c1cf91c + dce4a80 commit 825efca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ declare module '@dagrejs/dagre' {
setEdge(params: Edge, value?: string | { [key: string]: any }): Graph<T>;
setEdge(sourceId: string, targetId: string, value?: string | Label, name?: string): Graph<T>;

children(parentName: string): string | undefined;
children(parentName: string): string[];
hasNode(name: string): boolean;
neighbors(name: string): Array<Node<T>> | undefined;
node(id: string | Label): Node<T>;
Expand Down

0 comments on commit 825efca

Please sign in to comment.