UNPKG

payload-rest-client

Version:

A typesafe rest api client for the payload cms.

6 lines (5 loc) 334 B
import { CustomEndpoints } from "./customEndpoints"; import { Config, ClientOptions, RPC } from "./types"; export { CustomEndpoint } from "./customEndpoints"; export * from "./errors"; export declare const createClient: <T extends Config, LOCALES, CE extends CustomEndpoints = any>(options: ClientOptions<CE>) => RPC<T, LOCALES, CE>;