Skip to content

Commit 7f1f3fd

Browse files
committed
chore(core): cleanup
Signed-off-by: braks <[email protected]>
1 parent 212a1c3 commit 7f1f3fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/store/actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function useActions(
3737
state.hooks.updateNodeInternals.trigger(updateIds)
3838
}
3939

40-
const findNode: Actions['findNode'] = <T extends GraphNode = GraphNode>(id) => {
40+
const findNode: Actions['findNode'] = <T extends GraphNode = GraphNode>(id: string | undefined) => {
4141
if (!id) {
4242
return
4343
}
@@ -52,7 +52,7 @@ export function useActions(
5252
return node as T | undefined
5353
}
5454

55-
const findEdge: Actions['findEdge'] = <T extends GraphEdge = GraphEdge>(id) => {
55+
const findEdge: Actions['findEdge'] = <T extends GraphEdge = GraphEdge>(id: string | undefined) => {
5656
if (!id) {
5757
return
5858
}

0 commit comments

Comments
 (0)