ee20e03cc2
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
19 lines
561 B
TypeScript
19 lines
561 B
TypeScript
import { Operation, NextLink } from "@apollo/client/core";
|
|
import { NetworkError } from "@apollo/client/errors";
|
|
import { ExecutionResult, GraphQLError } from "graphql";
|
|
|
|
export declare class AbsintheGraphQLError extends GraphQLError {
|
|
field?: string;
|
|
code?: string;
|
|
status_code?: number;
|
|
}
|
|
export declare type AbsintheGraphQLErrors = ReadonlyArray<AbsintheGraphQLError>;
|
|
|
|
export interface ErrorResponse {
|
|
graphQLErrors?: AbsintheGraphQLErrors;
|
|
networkError?: NetworkError;
|
|
response?: ExecutionResult;
|
|
operation: Operation;
|
|
forward: NextLink;
|
|
}
|