Skip to content

Type alias: UpdateNodeData ​

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

Type declaration ​

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

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

void

Released under the MIT License.