CreateClientConfig

Type Alias: CreateClientConfig<T>

CreateClientConfig<T> = (override?) => Config<Required<ClientOptions> & T>

Defined in: app/api/client/types.gen.ts:175

The createClientConfig() function will be called on client initialization and the returned object will become the client's initial configuration.

You may want to initialize your client this way instead of calling

setConfig(). This is useful for example if you're using Next.js

to ensure your client always has the correct values.

Type Parameters

T

T *extends* ClientOptions = ClientOptions

Parameters

override?

Config<ClientOptions & T>

Returns

Config<Required<ClientOptions> & T>

On this page