UNPKG

kypi

Version:

Type-safe, ergonomic API client builder for TypeScript & React based on ky.

11 lines (10 loc) 369 B
import { l as EndpointGroup, n as ApiClientOptions, s as ClientOf } from "../index-Bg_NYKuO.js"; //#region src/react/index.d.ts declare const createClientHook: <E extends EndpointGroup>(endpoints: E) => ({ baseUrl, getToken, onError, kyInstance }: Omit<ApiClientOptions<typeof endpoints>, "endpoints">) => ClientOf<E>; //#endregion export { createClientHook };