mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2024-11-29 08:49:40 +00:00
15 lines
569 B
TypeScript
15 lines
569 B
TypeScript
|
import { GraphQLError } from 'graphql';
|
||
|
export declare function isApolloError(err: Error): err is ApolloError;
|
||
|
export declare class ApolloError extends Error {
|
||
|
message: string;
|
||
|
graphQLErrors: ReadonlyArray<GraphQLError>;
|
||
|
networkError: Error | null;
|
||
|
extraInfo: any;
|
||
|
constructor({ graphQLErrors, networkError, errorMessage, extraInfo, }: {
|
||
|
graphQLErrors?: ReadonlyArray<GraphQLError>;
|
||
|
networkError?: Error | null;
|
||
|
errorMessage?: string;
|
||
|
extraInfo?: any;
|
||
|
});
|
||
|
}
|
||
|
//# sourceMappingURL=ApolloError.d.ts.map
|