UNPKG

@apollo/client

Version:

A fully-featured caching GraphQL client.

23 lines 974 B
import '../utilities/globals'; import { GraphQLError } from 'graphql'; import { ServerParseError } from '../link/http'; import { ServerError } from '../link/utils'; export declare function isApolloError(err: Error): err is ApolloError; export type GraphQLErrors = ReadonlyArray<GraphQLError>; export type NetworkError = Error | ServerParseError | ServerError | null; export declare class ApolloError extends Error { name: string; message: string; graphQLErrors: GraphQLErrors; clientErrors: ReadonlyArray<Error>; networkError: Error | ServerParseError | ServerError | null; extraInfo: any; constructor({ graphQLErrors, clientErrors, networkError, errorMessage, extraInfo, }: { graphQLErrors?: ReadonlyArray<GraphQLError>; clientErrors?: ReadonlyArray<Error>; networkError?: Error | ServerParseError | ServerError | null; errorMessage?: string; extraInfo?: any; }); } //# sourceMappingURL=index.d.ts.map