From 2c29baa144e9b86a753d0bf2a6db74265d9aeaa7 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Thu, 30 Jun 2022 14:17:03 +0200 Subject: [PATCH] fix: use GraphQLError from graphql module --- src/types.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/types.ts b/src/types.ts index 21d669adc..efb04d87e 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,14 +1,10 @@ import { DocumentNode } from 'graphql/language/ast' +import type { GraphQLError } from 'graphql/error/GraphQLError' import * as Dom from './types.dom' -export type Variables = { [key: string]: any } +export type { GraphQLError } -export interface GraphQLError { - message: string - locations?: { line: number; column: number }[] - path?: string[] - extensions?: any -} +export type Variables = { [key: string]: any } export interface GraphQLResponse { data?: T