We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 212a1c3 commit 7f1f3fdCopy full SHA for 7f1f3fd
packages/core/src/store/actions.ts
@@ -37,7 +37,7 @@ export function useActions(
37
state.hooks.updateNodeInternals.trigger(updateIds)
38
}
39
40
- const findNode: Actions['findNode'] = <T extends GraphNode = GraphNode>(id) => {
+ const findNode: Actions['findNode'] = <T extends GraphNode = GraphNode>(id: string | undefined) => {
41
if (!id) {
42
return
43
@@ -52,7 +52,7 @@ export function useActions(
52
return node as T | undefined
53
54
55
- const findEdge: Actions['findEdge'] = <T extends GraphEdge = GraphEdge>(id) => {
+ const findEdge: Actions['findEdge'] = <T extends GraphEdge = GraphEdge>(id: string | undefined) => {
56
57
58
0 commit comments