UNPKG

http-link-dataloader

Version:

[![CircleCI](https://circleci.com/gh/graphcool/http-link-dataloader.svg?style=shield)](https://circleci.com/gh/graphcool/http-link-dataloader) [![npm version](https://badge.fury.io/js/http-link-dataloader.svg)](https://badge.fury.io/js/http-link-dataloade

42 lines (41 loc) 984 B
export declare type Variables = { [key: string]: any; }; export interface Options { method?: RequestInit['method']; headers?: { [key: string]: string; }; mode?: RequestInit['mode']; credentials?: RequestInit['credentials']; cache?: RequestInit['cache']; redirect?: RequestInit['redirect']; referrer?: RequestInit['referrer']; referrerPolicy?: RequestInit['referrerPolicy']; integrity?: RequestInit['integrity']; keepalive?: boolean; } export declare type HttpOptions = Options & { uri: string; }; export interface GraphQLError { message: string; locations?: { line: number; column: number; }[]; path?: string[]; } export interface GraphQLResponse { data?: any; errors?: GraphQLError[]; status: number; [key: string]: any; } export interface GraphQLRequestContext { query: string; variables?: Variables; } export interface ClientOptions { cacheResults?: boolean; }