Skip to content

Commit 94276ef

Browse files
committed
Use proposed type fix
1 parent c36e138 commit 94276ef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/import/src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,8 @@ function visitDefinition(
272272
// TODO: handle queries without names
273273
if (
274274
'name' in definition ||
275-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
276-
/** @ts-ignore: GraphQL 15 type definition does not like schema extension here. But it can be ignored because if unused, then it will not match and work as normal */
277-
[Kind.SCHEMA_DEFINITION, Kind.SCHEMA_EXTENSION].includes(definition.kind)
275+
definition.kind === Kind.SCHEMA_DEFINITION ||
276+
definition.kind === Kind.SCHEMA_EXTENSION
278277
) {
279278
const definitionName =
280279
'name' in definition && definition.name ? definition.name.value : 'schema';

0 commit comments

Comments
 (0)