Skip to content

Commit 2e437eb

Browse files
authored
fix(load): fix type for NON_OPERATION_KINDS (#4051)
* fix(load): fix type for NON_OPERATION_KINDS * Add changeset
1 parent 69b316c commit 2e437eb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/famous-owls-sit.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-tools/load': patch
3+
---
4+
5+
Fix type error on NON_OPERATION_KINDS when using with graphql@15

packages/load/src/documents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const OPERATION_KINDS: KindList = [Kind.OPERATION_DEFINITION, Kind.FRAGME
1212
/**
1313
* Kinds of AST nodes that are included in type system definition documents
1414
*/
15-
export const NON_OPERATION_KINDS = Object.keys(Kind)
15+
export const NON_OPERATION_KINDS: KindList = Object.keys(Kind)
1616
.reduce((prev, v) => [...prev, Kind[v]], [] as KindList)
1717
.filter(v => !OPERATION_KINDS.includes(v));
1818

0 commit comments

Comments
 (0)