Skip to content

Function: defineAdapterConfiguration()

ts
function defineAdapterConfiguration<T>(
  config: KyooConfiguration<T>,
): KyooConfiguration<T>;

Validates, sanitizes, and returns the configuration object for the adapter.

Type Parameters

Type Parameter
T extends keyof KyooClientConfigurations

Parameters

ParameterTypeDescription
configKyooConfiguration<T>The configuration object for the adapter.

Returns

KyooConfiguration<T>

A validated configuration object with the correct type.