ChainGraph API Documentation / @badaitech/chaingraph-types / DefaultValue
Function: DefaultValue()
DefaultValue<
T>(value):PropertyDecorator
Defined in: packages/chaingraph-types/src/decorator/port-config.decorator.ts:72
DefaultValue decorator to set a default value for a port. This decorator updates the port metadata with a new "defaultValue" property.
Type Parameters
T
T
Parameters
value
T
The default value to be used for the port.
Returns
PropertyDecorator