Skip to content

Commit af8c6e2

Browse files
committed
Fix vasturiano#516. Fix d3force types
1 parent a3ace95 commit af8c6e2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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
@@ -135,7 +135,7 @@ export interface ForceGraphMethods<
135135

136136
// Force engine (d3-force) configuration
137137
d3Force(forceName: 'link' | 'charge' | 'center' | string): ForceFn<NodeObject<NodeType>> | undefined;
138-
d3Force(forceName: 'link' | 'charge' | 'center' | string, forceFn: ForceFn<NodeObject<NodeType>>): ForceGraphKapsuleInstance;
138+
d3Force(forceName: 'link' | 'charge' | 'center' | string, forceFn: ForceFn<NodeObject<NodeType>> | null): ForceGraphKapsuleInstance;
139139
d3ReheatSimulation(): ForceGraphKapsuleInstance;
140140

141141
// Render control

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export interface ForceGraphMethods<
141141

142142
// Force engine (d3-force) configuration
143143
d3Force(forceName: 'link' | 'charge' | 'center' | string): ForceFn<NodeObject<NodeType>> | undefined;
144-
d3Force(forceName: 'link' | 'charge' | 'center' | string, forceFn: ForceFn<NodeObject<NodeType>>): ForceGraphKapsuleInstance;
144+
d3Force(forceName: 'link' | 'charge' | 'center' | string, forceFn: ForceFn<NodeObject<NodeType>> | null): ForceGraphKapsuleInstance;
145145
d3ReheatSimulation(): ForceGraphKapsuleInstance;
146146

147147
// Render control

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export interface ForceGraphMethods<
128128

129129
// Force engine (d3-force) configuration
130130
d3Force(forceName: 'link' | 'charge' | 'center' | string): ForceFn<NodeObject<NodeType>> | undefined;
131-
d3Force(forceName: 'link' | 'charge' | 'center' | string, forceFn: ForceFn<NodeObject<NodeType>>): ForceGraphKapsuleInstance;
131+
d3Force(forceName: 'link' | 'charge' | 'center' | string, forceFn: ForceFn<NodeObject<NodeType>> | null): ForceGraphKapsuleInstance;
132132
d3ReheatSimulation(): ForceGraphKapsuleInstance;
133133

134134
// Render control

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export interface ForceGraphMethods<
132132

133133
// Force engine (d3-force) configuration
134134
d3Force(forceName: 'link' | 'charge' | 'center' | string): ForceFn<NodeObject<NodeType>> | undefined;
135-
d3Force(forceName: 'link' | 'charge' | 'center' | string, forceFn: ForceFn<NodeObject<NodeType>>): ForceGraphKapsuleInstance;
135+
d3Force(forceName: 'link' | 'charge' | 'center' | string, forceFn: ForceFn<NodeObject<NodeType>> | null): ForceGraphKapsuleInstance;
136136
d3ReheatSimulation(): ForceGraphKapsuleInstance;
137137

138138
// Render control

0 commit comments

Comments
 (0)