@vue-flow/monorepo • Docs
Function: getIncomers() ​
getIncomers(nodeOrId, nodes, edges) ​
getIncomers<
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
[]
getIncomers(nodeOrId, elements) ​
getIncomers<
T
>(nodeOrId
,elements
):T
extendsFlowElements
?GraphNode
[] :Node
[]
Type Parameters ​
• T extends Elements
Parameters ​
• nodeOrId: string
| Node
<any
, any
, string
> | object
• elements: T
Returns ​
T
extends FlowElements
? GraphNode
[] : Node
[]