File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -503,6 +503,13 @@ export type InputObjectTypeDefinitionNode = {
503
503
504
504
export type TypeSystemExtensionNode = SchemaExtensionNode | TypeExtensionNode ;
505
505
506
+ export type SchemaExtensionNode = {
507
+ + kind : 'SchemaExtension' ,
508
+ + loc ? : Location ,
509
+ + directives ?: $ReadOnlyArray < DirectiveNode > ,
510
+ + operationTypes ?: $ReadOnlyArray < OperationTypeDefinitionNode > ,
511
+ } ;
512
+
506
513
export type TypeExtensionNode =
507
514
| ScalarTypeExtensionNode
508
515
| ObjectTypeExtensionNode
@@ -511,13 +518,6 @@ export type TypeExtensionNode =
511
518
| EnumTypeExtensionNode
512
519
| InputObjectTypeExtensionNode ;
513
520
514
- export type SchemaExtensionNode = {
515
- + kind : 'SchemaExtension' ,
516
- + loc ? : Location ,
517
- + directives ?: $ReadOnlyArray < DirectiveNode > ,
518
- + operationTypes ?: $ReadOnlyArray < OperationTypeDefinitionNode > ,
519
- } ;
520
-
521
521
export type ScalarTypeExtensionNode = {
522
522
+ kind : 'ScalarTypeExtension' ,
523
523
+ loc ? : Location ,
Original file line number Diff line number Diff line change @@ -752,10 +752,10 @@ export function parseNamedType(lexer: Lexer<*>): NamedTypeNode {
752
752
753
753
/**
754
754
* TypeSystemDefinition :
755
- * - TypeSystemExtension
756
755
* - SchemaDefinition
757
756
* - TypeDefinition
758
757
* - DirectiveDefinition
758
+ * - TypeSystemExtension
759
759
*
760
760
* TypeDefinition :
761
761
* - ScalarTypeDefinition
@@ -785,10 +785,10 @@ function parseTypeSystemDefinition(lexer: Lexer<*>): TypeSystemDefinitionNode {
785
785
return parseEnumTypeDefinition ( lexer ) ;
786
786
case 'input' :
787
787
return parseInputObjectTypeDefinition ( lexer ) ;
788
- case 'extend' :
789
- return parseTypeSystemExtension ( lexer ) ;
790
788
case 'directive' :
791
789
return parseDirectiveDefinition ( lexer ) ;
790
+ case 'extend' :
791
+ return parseTypeSystemExtension ( lexer ) ;
792
792
}
793
793
}
794
794
You can’t perform that action at this time.
0 commit comments