UNPKG

432 BTypeScriptView Raw
1import { Options, Variables } from './types';
2import 'cross-fetch/polyfill';
3import { ClientOptions } from '.';
4export declare class BatchedGraphQLClient {
5 uri: string;
6 options: Options;
7 private dataloader;
8 constructor(uri: string, options?: Options & ClientOptions);
9 request<T extends any>(query: string, variables?: Variables, operationName?: string): Promise<T>;
10 load: (keys: string[]) => Promise<any>;
11}