fetchero
Version:
_A type-safe, proxy-based HTTP & GraphQL client for modern applications._
22 lines (21 loc) • 607 B
TypeScript
import { FetcheroOptions, GraphQLProxy, RestProxy } from '../types';
/**
* Enhanced Fetchero class with separated concerns
*/
export declare class Fetchero {
private readonly httpClient;
private readonly restProxyFactory;
private restProxy?;
private gqlProxy?;
private readonly graphqlProxyFactory;
private readonly headers;
constructor({ baseUrl, headers, interceptors }: FetcheroOptions);
/**
* Returns REST proxy interface
*/
get rest(): RestProxy;
/**
* Returns GraphQL proxy interface
*/
get gql(): GraphQLProxy;
}