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
Parameter | Type | Description |
---|---|---|
config | KyooConfiguration <T > | The configuration object for the adapter. |
Returns
A validated configuration object with the correct type.