Skip to Content
React Flow 13 is here! Read the announcement →
ReferenceTypes

OnSelectionChangeParams

Source on GitHub 

The OnSelectionChangeParams type is an object containing the currently selected nodes and edges. It is passed to an OnSelectionChangeFunc.

type OnSelectionChangeParams<NodeType extends Node = Node, EdgeType extends Edge = Edge> = { nodes: NodeType[]; edges: EdgeType[]; };
NameTypeDefault
nodesNodeType[]
edgesEdgeType[]