Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-types / findPortByKey

Function: findPortByKey() ​

findPortByKey(node, key): IPort<IPortConfig> | undefined

Defined in: packages/chaingraph-types/src/node/traverse-ports.ts:61

Find a port by port config.key

Parameters ​

node ​

INode

Node to search

key ​

string

Key to search

Returns ​

IPort<IPortConfig> | undefined

Found port or undefined

Licensed under BUSL-1.1