PersistentAI API Documentation / @persistent-ai/fireflow-types / PortDecoratorOptions
Type Alias: PortDecoratorOptions<T>
PortDecoratorOptions<
T> =Textends"object"?ObjectPortOptions:Textends"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