refactor(core): allow passing null as id for find actions

This commit is contained in:
braks
2023-05-25 20:48:26 +02:00
committed by Braks
parent 8466e85330
commit 4421ad0ee7
+2 -2
View File
@@ -183,11 +183,11 @@ export type UpdateNodeDimensions = (updates: UpdateNodeDimensionsParams[]) => vo
export type UpdateNodeInternals = (nodeIds?: string[]) => void
export type FindNode = <Data = ElementData, CustomEvents extends Record<string, CustomEvent> = any>(
id: string | undefined,
id: string | undefined | null,
) => GraphNode<Data, CustomEvents> | undefined
export type FindEdge = <Data = ElementData, CustomEvents extends Record<string, CustomEvent> = any>(
id: string | undefined,
id: string | undefined | null,
) => GraphEdge<Data, CustomEvents> | undefined
export type GetIntersectingNodes = (