Skip to content

Commit e5bb526

Browse files
committed
chore(core): cleanup
Signed-off-by: braks <[email protected]>
1 parent 3cd01e5 commit e5bb526

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/core/src/store/actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

packages/core/src/store/state.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ function defaultState(): State {
130130

131131
disableKeyboardA11y: false,
132132
ariaLiveMessage: '',
133-
}}
133+
}
134+
}
134135

135136
export function useState(opts?: FlowOptions): State {
136137
const state = defaultState()

0 commit comments

Comments
 (0)