Skip to content

Commit

Permalink
Go
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Jan 12, 2023
1 parent 9894c79 commit 03ca057
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/load/src/documents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Source } from '@graphql-tools/utils';
import { Kind } from 'graphql';
import { LoadTypedefsOptions, loadTypedefs, loadTypedefsSync, UnnormalizedTypeDefPointer } from './load-typedefs.js';

type KindList = Array<typeof Kind[keyof typeof Kind]>;
type KindList = Array<(typeof Kind)[keyof typeof Kind]>;

/**
* Kinds of AST nodes that are included in executable documents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type EntityKind =
| InterfaceTypeDefinitionNode
| InterfaceTypeExtensionNode;

const entityKinds: typeof Kind[keyof typeof Kind][] = [
const entityKinds: (typeof Kind)[keyof typeof Kind][] = [
Kind.OBJECT_TYPE_DEFINITION,
Kind.OBJECT_TYPE_EXTENSION,
Kind.INTERFACE_TYPE_DEFINITION,
Expand Down

0 comments on commit 03ca057

Please sign in to comment.