chore(react): createSelectionChange types
This commit is contained in:
@@ -219,7 +219,7 @@ export function applyEdgeChanges<EdgeType extends Edge = Edge>(
|
|||||||
return applyChanges(changes, edges) as EdgeType[];
|
return applyChanges(changes, edges) as EdgeType[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createSelectionChange(id: string, selected: boolean) {
|
export function createSelectionChange(id: string, selected: boolean): NodeSelectionChange | EdgeSelectionChange {
|
||||||
return {
|
return {
|
||||||
id,
|
id,
|
||||||
type: 'select',
|
type: 'select',
|
||||||
|
|||||||
Reference in New Issue
Block a user