Skip to content

Commit 680737d

Browse files
authored
Updated types for ForceFn for react-force-graph-2d
Updated the types for ForceFn for the react-force-graph-2d, as was already done with the react-force-graph-3d
1 parent 83b2e22 commit 680737d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packages/react-force-graph-2d/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type DagMode = 'td' | 'bu' | 'lr' | 'rl' | 'radialout' | 'radialin';
3333

3434
interface ForceFn {
3535
(alpha: number): void;
36-
initialize?: (nodes: NodeObject[]) => void;
36+
initialize?: (nodes: NodeObject[], ...args: any[]) => void;
3737
[key: string]: any;
3838
}
3939

0 commit comments

Comments
 (0)