UNPKG

kypi

Version:

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

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