OnBeforeDelete
The OnBeforeDelete
type defines the callback function that is called before nodes or edges are deleted. This callback receives an object containing the nodes and edges that are about to be deleted.
type OnBeforeDelete = (params: {
nodes: Node[];
edges: Edge[];
}) => Promise<boolean | {
nodes: Node[];
edges: Edge[];
})>;
Name | Type | Default |
---|---|---|
__0 | { nodes: NodeType[]; edges: EdgeType[]; } |
Last updated on