UNPKG

@gqlts/runtime

Version:

Gqlts runtime client

13 lines 557 B
import { ClientOptions, ClientRequestConfig } from './client/createClient'; import { GraphqlOperation } from './client/generateGraphqlOperation'; import { AxiosInstance } from 'axios'; export interface Fetcher { fetcherMethod: (gql: GraphqlOperation, config?: ClientRequestConfig) => Promise<any>; fetcherInstance: AxiosInstance | unknown | undefined; } export type BatchOptions = { batchInterval?: number; maxBatchSize?: number; }; export declare function createFetcher(params: ClientOptions): Fetcher; //# sourceMappingURL=fetcher.d.ts.map