UNPKG

fetchero

Version:

_A type-safe, proxy-based HTTP & GraphQL client for modern applications._

17 lines (16 loc) 522 B
import { FetcheroOptions, RestProxy, GraphQLProxy } from '../types'; /** * Creates a Fetchero instance with both REST and GraphQL interfaces */ export declare const createFetchero: (options: FetcheroOptions) => Readonly<{ rest: RestProxy<any>; gql: GraphQLProxy; }>; /** * Creates a standalone REST client */ export declare const rest: (options: FetcheroOptions) => RestProxy; /** * Creates a standalone GraphQL client */ export declare const gql: (options: FetcheroOptions) => GraphQLProxy;