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(
6363 state . hooks . updateNodeInternals . trigger ( updateIds )
6464 }
6565
66- const findNode : Actions [ 'findNode' ] = < T extends GraphNode = GraphNode > ( id ) => {
66+ const findNode : Actions [ 'findNode' ] = < T extends GraphNode = GraphNode > ( id : string | undefined | null ) => {
6767 if ( ! id ) {
6868 return
6969 }
@@ -78,7 +78,7 @@ export function useActions(
7878 return node as T | undefined
7979 }
8080
81- const findEdge : Actions [ 'findEdge' ] = < T extends GraphEdge = GraphEdge > ( id ) => {
81+ const findEdge : Actions [ 'findEdge' ] = < T extends GraphEdge = GraphEdge > ( id : string | undefined | null ) => {
8282 if ( ! id ) {
8383 return
8484 }
Original file line number Diff line number Diff line change @@ -130,7 +130,8 @@ function defaultState(): State {
130130
131131 disableKeyboardA11y : false ,
132132 ariaLiveMessage : '' ,
133- } }
133+ }
134+ }
134135
135136export function useState ( opts ?: FlowOptions ) : State {
136137 const state = defaultState ( )
You can’t perform that action at this time.
0 commit comments