Skip to content

Function: getIncomers ​

â–¸ getIncomers<N>(nodeOrId, nodes, edges): N[]

Type parameters ​

NameType
Nextends Node<any, any, string>

Parameters ​

NameType
nodeOrIdstring | Node<any, any, string> | { id: string }
nodesN[]
edgesEdge[]

Returns ​

N[]

â–¸ getIncomers<T>(nodeOrId, elements): T extends FlowElements ? GraphNode[] : Node[]

Type parameters ​

NameType
Textends Elements

Parameters ​

NameType
nodeOrIdstring | Node<any, any, string> | { id: string }
elementsT

Returns ​

T extends FlowElements ? GraphNode[] : Node[]

Released under the MIT License.