@@ -6,21 +6,19 @@ import { print } from '../language/printer';
66
77import { astFromValue } from '../utilities/astFromValue' ;
88
9- import {
9+ import type {
1010 GraphQLEnumValue ,
1111 GraphQLField ,
1212 GraphQLFieldConfigMap ,
1313 GraphQLInputField ,
1414 GraphQLNamedType ,
15- GraphQLType ,
16- isSemanticNonNullType ,
17- } from './definition' ;
15+ GraphQLType } from './definition' ;
1816import {
1917 GraphQLEnumType ,
2018 GraphQLList ,
2119 GraphQLNonNull ,
22- GraphQLSemanticNonNull ,
2320 GraphQLObjectType ,
21+ GraphQLSemanticNonNull ,
2422 isAbstractType ,
2523 isEnumType ,
2624 isInputObjectType ,
@@ -29,6 +27,7 @@ import {
2927 isNonNullType ,
3028 isObjectType ,
3129 isScalarType ,
30+ isSemanticNonNullType ,
3231 isUnionType ,
3332} from './definition' ;
3433import type { GraphQLDirective } from './directives' ;
@@ -414,15 +413,15 @@ export const __Field: GraphQLObjectType = new GraphQLObjectType({
414413 resolve : ( field , { nullability } , _context , info ) => {
415414 if ( nullability === TypeNullability . FULL ) {
416415 return field . type ;
417- } else {
416+ }
418417 const mode =
419418 nullability === TypeNullability . AUTO
420419 ? info . errorPropagation
421420 ? TypeNullability . TRADITIONAL
422421 : TypeNullability . SEMANTIC
423422 : nullability ;
424423 return convertOutputTypeToNullabilityMode ( field . type , mode ) ;
425- }
424+
426425 } ,
427426 } ,
428427 isDeprecated : {
@@ -452,10 +451,10 @@ function convertOutputTypeToNullabilityMode(
452451 return new GraphQLList (
453452 convertOutputTypeToNullabilityMode ( type . ofType , mode ) ,
454453 ) ;
455- } else {
454+ }
456455 return type ;
457- }
458- } else {
456+
457+ }
459458 if ( isNonNullType ( type ) || isSemanticNonNullType ( type ) ) {
460459 return new GraphQLSemanticNonNull (
461460 convertOutputTypeToNullabilityMode ( type . ofType , mode ) ,
@@ -464,10 +463,10 @@ function convertOutputTypeToNullabilityMode(
464463 return new GraphQLList (
465464 convertOutputTypeToNullabilityMode ( type . ofType , mode ) ,
466465 ) ;
467- } else {
466+ }
468467 return type ;
469- }
470- }
468+
469+
471470}
472471
473472export const __InputValue : GraphQLObjectType = new GraphQLObjectType ( {
0 commit comments