web icon indicating copy to clipboard operation
web copied to clipboard

chore(docs): update EdgeChange types documentation.

Open diaz-camilo opened this issue 4 months ago • 1 comments

based on changes.ts

export type EdgeSelectionChange = NodeSelectionChange;
export type EdgeRemoveChange = NodeRemoveChange;
export type EdgeAddChange<EdgeType extends EdgeBase = EdgeBase> = {
    item: EdgeType;
    type: 'add';
    index?: number;
};
export type EdgeReplaceChange<EdgeType extends EdgeBase = EdgeBase> = {
    id: string;
    item: EdgeType;
    type: 'replace';
};

diaz-camilo avatar Sep 26 '24 11:09 diaz-camilo