UNPKG

569 BTypeScriptView Raw
1import { GraphQLError } from 'graphql';
2export declare function isApolloError(err: Error): err is ApolloError;
3export declare class ApolloError extends Error {
4 message: string;
5 graphQLErrors: ReadonlyArray<GraphQLError>;
6 networkError: Error | null;
7 extraInfo: any;
8 constructor({ graphQLErrors, networkError, errorMessage, extraInfo, }: {
9 graphQLErrors?: ReadonlyArray<GraphQLError>;
10 networkError?: Error | null;
11 errorMessage?: string;
12 extraInfo?: any;
13 });
14}
15//# sourceMappingURL=ApolloError.d.ts.map
\No newline at end of file