Type Alias CreateClientConfig<T>

CreateClientConfig: (
    override?: Config<DefaultClientOptions & T>,
) => Config<Required<DefaultClientOptions> & T>

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

Type declaration

    • (
          override?: Config<DefaultClientOptions & T>,
      ): Config<Required<DefaultClientOptions> & T>
    • Parameters

      • Optionaloverride: Config<DefaultClientOptions & T>

      Returns Config<Required<DefaultClientOptions> & T>