Open History to see the last commit
1// This file is auto-generated by @hey-api/openapi-ts
2
3import {
4 type ClientOptions,
5 type Config,
6 createClient,
7 createConfig,
8} from './client'
9import type { ClientOptions as ClientOptions2 } from './types.gen'
10
11/**
12 * The `createClientConfig()` function will be called on client initialization
13 * and the returned object will become the client's initial configuration.
14 *
15 * You may want to initialize your client this way instead of calling
16 * `setConfig()`. This is useful for example if you're using Next.js
17 * to ensure your client always has the correct values.
18 */
19export type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (
20 override?: Config<ClientOptions & T>,
21) => Config<Required<ClientOptions> & T>
22
23export const client = createClient(createConfig<ClientOptions2>())