Skip to content

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

INode

Node to map

mapper

(port) => IPort

Mapper function

Returns

IPort<IPortConfig>[]

Mapped ports

Licensed under BUSL-1.1