Skip to content

Function: getOutgoers ​

â–¸ getOutgoers<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[]

â–¸ getOutgoers<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.