Skip to content

Commit

Permalink
chore(core): cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
  • Loading branch information
bcakmakoglu committed Apr 15, 2023
1 parent c677491 commit 31687fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/store/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function useActions(
state.hooks.updateNodeInternals.trigger(updateIds)
}

const findNode: Actions['findNode'] = <T extends GraphNode = GraphNode>(id) => {
const findNode: Actions['findNode'] = <T extends GraphNode = GraphNode>(id: string | undefined) => {
if (!id) {
return
}
Expand All @@ -52,7 +52,7 @@ export function useActions(
return node as T | undefined
}

const findEdge: Actions['findEdge'] = <T extends GraphEdge = GraphEdge>(id) => {
const findEdge: Actions['findEdge'] = <T extends GraphEdge = GraphEdge>(id: string | undefined) => {
if (!id) {
return
}
Expand Down

0 comments on commit 31687fd

Please sign in to comment.