@nekofar/warpcast
Version:
TypeScript client for interacting with Warpcast APIs
20 lines (17 loc) • 857 B
TypeScript
import { a as ClientOptions, b as Config, C as Client } from '../types-B3ltVjoL.js';
import { ClientOptions as ClientOptions$1 } from './types.gen.js';
import './core/auth.js';
import './core/types.js';
import './core/bodySerializer.js';
import './core/pathSerializer.js';
/**
* 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 };