Skip to content

Commit 4fc543c

Browse files
fix(overmind-graphql): extend document node to avoid typing issues
1 parent 4d497e1 commit 4fc543c

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"express": "4.16.3",
3939
"graphql": "14.5.8",
4040
"graphql-request": "1.8.2",
41-
"graphql-tag": "2.10.1",
41+
"graphql-tag": "2.10.3",
4242
"install": "0.12.1",
4343
"is-plain-obj": "1.1.0",
4444
"lodash.throttle": "4.1.1",

packages/node_modules/overmind-graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"graphql": "^14.5.8",
3535
"graphql-request": "^1.8.2",
36-
"graphql-tag": "^2.10.1",
36+
"graphql-tag": "^2.10.3",
3737
"overmind": "next",
3838
"@absinthe/socket": "^0.2.1",
3939
"phoenix": "^1.4.13"

packages/node_modules/overmind-graphql/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import {
55
Options,
66
} from 'graphql-request/dist/src/types';
77
import { print } from 'graphql/language/printer';
8+
import { DocumentNode } from 'graphql'
89
import { Socket as PhoenixSocket } from 'phoenix';
910

1011
export { default as gql } from 'graphql-tag';
1112

12-
export interface Query<Result extends any, Payload extends any = void> {
13+
export interface Query<Result extends any, Payload extends any = void> extends DocumentNode {
1314
(payload: Payload): Result;
1415
}
1516

0 commit comments

Comments
 (0)