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
Node to search
key
string
Key to search
Returns
IPort<IPortConfig> | undefined
Found port or undefined