@nekofar/warpcast
Version:
TypeScript client for interacting with Warpcast APIs
20 lines (17 loc) • 863 B
text/typescript
import { a as ClientOptions, b as Config, C as Client } from '../types-D-yLC6zK.cjs';
import { ClientOptions as ClientOptions$1 } from './types.gen.cjs';
import './core/auth.cjs';
import './core/types.cjs';
import './core/bodySerializer.cjs';
import './core/pathSerializer.cjs';
/**
* 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 CreateClientConfig<T extends ClientOptions = ClientOptions$1> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
declare const client: Client;
export { type CreateClientConfig, client };