refactor(core): allow passing null as id for find actions
This commit is contained in:
@@ -183,11 +183,11 @@ export type UpdateNodeDimensions = (updates: UpdateNodeDimensionsParams[]) => vo
|
|||||||
export type UpdateNodeInternals = (nodeIds?: string[]) => void
|
export type UpdateNodeInternals = (nodeIds?: string[]) => void
|
||||||
|
|
||||||
export type FindNode = <Data = ElementData, CustomEvents extends Record<string, CustomEvent> = any>(
|
export type FindNode = <Data = ElementData, CustomEvents extends Record<string, CustomEvent> = any>(
|
||||||
id: string | undefined,
|
id: string | undefined | null,
|
||||||
) => GraphNode<Data, CustomEvents> | undefined
|
) => GraphNode<Data, CustomEvents> | undefined
|
||||||
|
|
||||||
export type FindEdge = <Data = ElementData, CustomEvents extends Record<string, CustomEvent> = any>(
|
export type FindEdge = <Data = ElementData, CustomEvents extends Record<string, CustomEvent> = any>(
|
||||||
id: string | undefined,
|
id: string | undefined | null,
|
||||||
) => GraphEdge<Data, CustomEvents> | undefined
|
) => GraphEdge<Data, CustomEvents> | undefined
|
||||||
|
|
||||||
export type GetIntersectingNodes = (
|
export type GetIntersectingNodes = (
|
||||||
|
|||||||
Reference in New Issue
Block a user