Skip to content

Function: defineConfig() ​

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

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

Type Parameters ​

Type Parameter
T extends keyof KyooClientConfigurations

Parameters ​

ParameterTypeDescription
configPartial<KyooConfiguration<T>>The potential configuration object for the Kyoo client.

Returns ​

KyooConfiguration<T>

A configuration object for the Kyoo client.