ChainGraph API Documentation / @badaitech/chaingraph-types / Id
Function: Id()
Id(
portId):PropertyDecorator
Defined in: packages/chaingraph-types/src/decorator/port-config.decorator.ts:84
Id decorator to assign a custom identifier to a port. This decorator updates the port metadata with a new "id" property.
Parameters
portId
string
The custom id for the port.
Returns
PropertyDecorator