Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-types / PortArrayBoolean

Function: PortArrayBoolean()

PortArrayBoolean(config?): PropertyDecorator

Defined in: packages/chaingraph-types/src/decorator/array.decorator.ts:101

Helper decorator for an array port where each element is a boolean.

This decorator presets the itemConfig for the port to { type: 'boolean' }.

Usage example: @PortArrayBoolean({ defaultValue: [true, false] }) public booleans!: boolean[];

Parameters

config?

Omit<Omit<ArrayPortConfig<any>, "itemConfig"> & object, "type" | "itemConfig">

Optional additional configuration for the array port.

Returns

PropertyDecorator

Licensed under BUSL-1.1