Skip to content

@vue-flow/monorepo • Docs


Function: getOutgoers() ​

getOutgoers(nodeOrId, nodes, edges) ​

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

Type Parameters ​

• N extends Node<any, any, string>

Parameters ​

• nodeOrId: string | Node<any, any, string> | object

• nodes: N[]

• edges: Edge[]

Returns ​

N[]

getOutgoers(nodeOrId, elements) ​

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

Type Parameters ​

• T extends Elements

Parameters ​

• nodeOrId: string | Node<any, any, string> | object

• elements: T

Returns ​

T extends FlowElements ? GraphNode[] : Node[]

Released under the MIT License.