Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
v1rtl committed Mar 19, 2021
1 parent a1c49a4 commit 42cfeef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export interface GraphQLParams {

interface QueryParams extends GraphQLParams {
query: string
mutation: never
mutation?: never
}

interface MutationParams extends GraphQLParams {
mutation: string
query: never
query?: never
}

type Params = QueryParams | MutationParams
Expand Down

0 comments on commit 42cfeef

Please sign in to comment.