Skip to content

Type alias: UpdateNode ​

Ƭ UpdateNode: <Data, CustomEvents>(id: string, nodeUpdate: Partial<Node<Data, CustomEvents>> | (node: GraphNode<Data, CustomEvents>) => Partial<Node<Data, CustomEvents>>, options?: { replace: boolean }) => void

Type declaration ​

â–¸ <Data, CustomEvents>(id, nodeUpdate, options?): void

Type parameters ​
NameType
DataElementData
CustomEventsextends Record<string, CustomEvent> = any
Parameters ​
NameType
idstring
nodeUpdatePartial<Node<Data, CustomEvents>> | (node: GraphNode<Data, CustomEvents>) => Partial<Node<Data, CustomEvents>>
options?Object
options.replaceboolean
Returns ​

void

Released under the MIT License.