bunny-client
Version:
TypeScript API Client for BunnyCDN 🐰
21 lines • 1.36 kB
TypeScript
/**
* @param defaultRequestInit default fetch parameters for every request
* @returns countriesClient
*
* @example
* ```ts
* const countriesClient = createCountriesClient({
* apiKey: API_ACCESS_KEY,
* });
*
* const response = await countriesClient("getCountryList");
* ```
*/
export declare function createCountriesClient(defaultInput: Record<string, any>, defaultRequestInit?: RequestInit): <T1 extends "GET /country" | "getCountryList">(firstArg: T1, ...args: import("untypeable/dist/client-ca591958").h<{
getCountryList: import("untypeable/dist/client-ca591958").g<import("./getCountryList").GetCountryListRequest, import("./getCountryList").GetCountryListResponse>;
"GET /country": import("untypeable/dist/client-ca591958").g<import("./getCountryList").GetCountryListRequest, import("./getCountryList").GetCountryListResponse>;
}[T1]>) => {
getCountryList: import("untypeable/dist/client-ca591958").g<import("./getCountryList").GetCountryListRequest, import("./getCountryList").GetCountryListResponse>;
"GET /country": import("untypeable/dist/client-ca591958").g<import("./getCountryList").GetCountryListRequest, import("./getCountryList").GetCountryListResponse>;
}[T1] extends import("untypeable/dist/client-ca591958").g<any, infer TOutput> ? Promise<TOutput> : never;
//# sourceMappingURL=createCountriesClient.d.ts.map