Skip to content

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

Function: createAnyPortConfig()

createAnyPortConfig(config): AnyPortConfig

Defined in: packages/chaingraph-types/src/port/instances/AnyPort.ts:327

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