ChainGraph API Documentation / @badaitech/chaingraph-types / mapPorts
Function: mapPorts()
mapPorts(
node,mapper):IPort<IPortConfig>[]
Defined in: packages/chaingraph-types/src/node/traverse-ports.ts:71
Map ports of a node
Parameters
node
Node to map
mapper
(port) => IPort
Mapper function
Returns
IPort<IPortConfig>[]
Mapped ports