UNPKG

679 BTypeScriptView Raw
1import { ApolloLink, RequestHandler } from 'apollo-link';
2import { HttpOptions, UriFunction as _UriFunction } from 'apollo-link-http-common';
3export declare namespace HttpLink {
4 interface UriFunction extends _UriFunction {
5 }
6 interface Options extends HttpOptions {
7 useGETForQueries?: boolean;
8 }
9}
10export import FetchOptions = HttpLink.Options;
11export import UriFunction = HttpLink.UriFunction;
12export declare const createHttpLink: (linkOptions?: FetchOptions) => ApolloLink;
13export declare class HttpLink extends ApolloLink {
14 requester: RequestHandler;
15 constructor(opts?: HttpLink.Options);
16}
17//# sourceMappingURL=httpLink.d.ts.map
\No newline at end of file