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[];
|
||||
}
|
||||
|
||||
export function createSelectionChange(id: string, selected: boolean) {
|
||||
export function createSelectionChange(id: string, selected: boolean): NodeSelectionChange | EdgeSelectionChange {
|
||||
return {
|
||||
id,
|
||||
type: 'select',
|
||||
|
||||
Reference in New Issue
Block a user