Skip to content

PersistentAI API Documentation / @persistent-ai/fireflow-types / PortDecoratorOptions

Type Alias: PortDecoratorOptions<T>

PortDecoratorOptions<T> = T extends "object" ? ObjectPortOptions : T extends "array" ? Omit<ConfigTypeMap["array"], "itemConfig"> & object : ConfigTypeMap[T]

Defined in: packages/fireflow-types/src/decorator/port.decorator.types.ts:65

Finally, the overall PortDecoratorOptions is:

  • For type "object", we require a "schema" field (explicitly).
  • For type "array", we require an "itemConfig" property that accepts our union.
  • For all other port types, the configuration is unchanged.

Type Parameters

T

T extends PortType

Licensed under BUSL-1.1