File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export function useActions(
63
63
state . hooks . updateNodeInternals . trigger ( updateIds )
64
64
}
65
65
66
- const findNode : Actions [ 'findNode' ] = < T extends GraphNode = GraphNode > ( id ) => {
66
+ const findNode : Actions [ 'findNode' ] = < T extends GraphNode = GraphNode > ( id : string | undefined | null ) => {
67
67
if ( ! id ) {
68
68
return
69
69
}
@@ -78,7 +78,7 @@ export function useActions(
78
78
return node as T | undefined
79
79
}
80
80
81
- const findEdge : Actions [ 'findEdge' ] = < T extends GraphEdge = GraphEdge > ( id ) => {
81
+ const findEdge : Actions [ 'findEdge' ] = < T extends GraphEdge = GraphEdge > ( id : string | undefined | null ) => {
82
82
if ( ! id ) {
83
83
return
84
84
}
Original file line number Diff line number Diff line change @@ -130,7 +130,8 @@ function defaultState(): State {
130
130
131
131
disableKeyboardA11y : false ,
132
132
ariaLiveMessage : '' ,
133
- } }
133
+ }
134
+ }
134
135
135
136
export function useState ( opts ?: FlowOptions ) : State {
136
137
const state = defaultState ( )
You can’t perform that action at this time.
0 commit comments