Skip to content

Function: getIncomers

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

Type parameters

NameType
Nextends Node<any, any, string, N>

Parameters

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

Returns

N[]

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

Type parameters

NameType
Textends Element<any, any, any, any>[]

Parameters

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

Returns

T extends FlowElements ? GraphNode[] : Node[]

Released under the MIT License.