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
The any port configuration.
Returns
The same configuration object.