apollo-client
Version:
A simple yet functional GraphQL client.
16 lines (15 loc) • 519 B
TypeScript
/// <reference types="graphql" />
import { GraphQLError } from 'graphql';
export declare function isApolloError(err: Error): err is ApolloError;
export declare class ApolloError extends Error {
message: string;
graphQLErrors: GraphQLError[];
networkError: Error | null;
extraInfo: any;
constructor({graphQLErrors, networkError, errorMessage, extraInfo}: {
graphQLErrors?: GraphQLError[];
networkError?: Error | null;
errorMessage?: string;
extraInfo?: any;
});
}