Skip to content

PersistentAI API Documentation / @persistentai/fireflow-types / createAnyPortConfig

Function: createAnyPortConfig()

createAnyPortConfig(config): AnyPortConfig

Defined in: packages/fireflow-types/src/port/instances/AnyPort.ts:326

Helper function to create an AnyPortConfig. This function helps ensure that the configuration object is constructed with proper type inference.

Example: const config = createAnyPortConfig({ type: 'any', underlyingType: { type: 'string', minLength: 2, }, })

Parameters

config

AnyPortConfig

The any port configuration.

Returns

AnyPortConfig

The same configuration object.

Licensed under BUSL-1.1