Skip to content

Commit

Permalink
fix: use GraphQLError from graphql module (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jul 5, 2022
1 parent dec0319 commit 988b437
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions 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<T = any> {
data?: T
Expand Down

0 comments on commit 988b437

Please sign in to comment.