@@ -586,7 +586,7 @@ export class GraphQLScalarType {
586
586
defineToStringTag ( GraphQLScalarType ) ;
587
587
defineToJSON ( GraphQLScalarType ) ;
588
588
589
- export type GraphQLScalarTypeConfig < TInternal , TExternal > = {
589
+ export type GraphQLScalarTypeConfig < TInternal , TExternal > = { |
590
590
name : string ,
591
591
description ?: ?string ,
592
592
astNode ?: ?ScalarTypeDefinitionNode ,
@@ -596,7 +596,7 @@ export type GraphQLScalarTypeConfig<TInternal, TExternal> = {
596
596
valueNode : ValueNode ,
597
597
variables : ?ObjMap < mixed > ,
598
598
) => ?TInternal ,
599
- } ;
599
+ | } ;
600
600
601
601
/**
602
602
* Object Type Definition
@@ -765,15 +765,15 @@ function isValidResolver(resolver: mixed): boolean {
765
765
return resolver == null || typeof resolver === 'function ';
766
766
}
767
767
768
- export type GraphQLObjectTypeConfig < TSource , TContext > = {
768
+ export type GraphQLObjectTypeConfig < TSource , TContext > = { |
769
769
name : string ,
770
770
interfaces ?: Thunk < ?Array < GraphQLInterfaceType >> ,
771
771
fields : Thunk < GraphQLFieldConfigMap < TSource , TContext> > ,
772
772
isTypeOf ?: ?GraphQLIsTypeOfFn < TSource , TContext> ,
773
773
description ?: ?string ,
774
774
astNode ?: ?ObjectTypeDefinitionNode ,
775
775
extensionASTNodes ?: ?$ReadOnlyArray < ObjectTypeExtensionNode > ,
776
- } ;
776
+ | } ;
777
777
778
778
export type GraphQLTypeResolver < TSource , TContext > = (
779
779
value : TSource ,
@@ -820,24 +820,24 @@ export type GraphQLFieldConfig<
820
820
TSource ,
821
821
TContext ,
822
822
TArgs = { [ argument : string ] : any } ,
823
- > = {
823
+ > = { |
824
824
type : GraphQLOutputType ,
825
825
args ?: GraphQLFieldConfigArgumentMap ,
826
826
resolve ?: GraphQLFieldResolver < TSource , TContext, TArgs> ,
827
827
subscribe ?: GraphQLFieldResolver < TSource , TContext, TArgs> ,
828
828
deprecationReason ?: ?string ,
829
829
description ?: ?string ,
830
830
astNode ?: ?FieldDefinitionNode ,
831
- } ;
831
+ | } ;
832
832
833
833
export type GraphQLFieldConfigArgumentMap = ObjMap < GraphQLArgumentConfig > ;
834
834
835
- export type GraphQLArgumentConfig = {
835
+ export type GraphQLArgumentConfig = { |
836
836
type : GraphQLInputType ,
837
837
defaultValue ?: mixed ,
838
838
description ?: ?string ,
839
839
astNode ?: ?InputValueDefinitionNode ,
840
- } ;
840
+ | } ;
841
841
842
842
export type GraphQLFieldConfigMap < TSource , TContext > = ObjMap <
843
843
GraphQLFieldConfig < TSource , TContext > ,
@@ -931,7 +931,7 @@ export class GraphQLInterfaceType {
931
931
defineToStringTag ( GraphQLInterfaceType ) ;
932
932
defineToJSON ( GraphQLInterfaceType ) ;
933
933
934
- export type GraphQLInterfaceTypeConfig < TSource , TContext > = {
934
+ export type GraphQLInterfaceTypeConfig < TSource , TContext > = { |
935
935
name : string ,
936
936
fields : Thunk < GraphQLFieldConfigMap < TSource , TContext> > ,
937
937
/**
@@ -943,7 +943,7 @@ export type GraphQLInterfaceTypeConfig<TSource, TContext> = {
943
943
description ?: ?string ,
944
944
astNode ?: ?InterfaceTypeDefinitionNode ,
945
945
extensionASTNodes ?: ?$ReadOnlyArray < InterfaceTypeExtensionNode > ,
946
- } ;
946
+ | } ;
947
947
948
948
/**
949
949
* Union Type Definition
@@ -1021,7 +1021,7 @@ function defineTypes(
1021
1021
return types ;
1022
1022
}
1023
1023
1024
- export type GraphQLUnionTypeConfig < TSource , TContext > = {
1024
+ export type GraphQLUnionTypeConfig < TSource , TContext > = { |
1025
1025
name : string ,
1026
1026
types : Thunk < Array < GraphQLObjectType >> ,
1027
1027
/**
@@ -1032,7 +1032,7 @@ export type GraphQLUnionTypeConfig<TSource, TContext> = {
1032
1032
resolveType ?: ?GraphQLTypeResolver < TSource , TContext> ,
1033
1033
description ?: ?string ,
1034
1034
astNode ?: ?UnionTypeDefinitionNode ,
1035
- } ;
1035
+ | } ;
1036
1036
1037
1037
/**
1038
1038
* Enum Type Definition
@@ -1152,23 +1152,23 @@ function defineEnumValues(
1152
1152
} ) ;
1153
1153
}
1154
1154
1155
- export type GraphQLEnumTypeConfig /* <T> */ = {
1155
+ export type GraphQLEnumTypeConfig /* <T> */ = { |
1156
1156
name : string ,
1157
1157
values : GraphQLEnumValueConfigMap /* <T> */ ,
1158
1158
description ?: ?string ,
1159
1159
astNode ?: ?EnumTypeDefinitionNode ,
1160
- } ;
1160
+ | } ;
1161
1161
1162
1162
export type GraphQLEnumValueConfigMap /* <T> */ = ObjMap <
1163
1163
GraphQLEnumValueConfig /* <T> */ ,
1164
1164
> ;
1165
1165
1166
- export type GraphQLEnumValueConfig /* <T> */ = {
1166
+ export type GraphQLEnumValueConfig /* <T> */ = { |
1167
1167
value ?: any /* T */ ,
1168
1168
deprecationReason ?: ?string ,
1169
1169
description ?: ?string ,
1170
1170
astNode ?: ?EnumValueDefinitionNode ,
1171
- } ;
1171
+ | } ;
1172
1172
1173
1173
export type GraphQLEnumValue /* <T> */ = {
1174
1174
name : string ,
@@ -1252,19 +1252,19 @@ export class GraphQLInputObjectType {
1252
1252
defineToStringTag ( GraphQLInputObjectType ) ;
1253
1253
defineToJSON ( GraphQLInputObjectType ) ;
1254
1254
1255
- export type GraphQLInputObjectTypeConfig = {
1255
+ export type GraphQLInputObjectTypeConfig = { |
1256
1256
name : string ,
1257
1257
fields : Thunk < GraphQLInputFieldConfigMap > ,
1258
1258
description ?: ?string ,
1259
1259
astNode ?: ?InputObjectTypeDefinitionNode ,
1260
- } ;
1260
+ | } ;
1261
1261
1262
- export type GraphQLInputFieldConfig = {
1262
+ export type GraphQLInputFieldConfig = { |
1263
1263
type : GraphQLInputType ,
1264
1264
defaultValue ?: mixed ,
1265
1265
description ?: ?string ,
1266
1266
astNode ?: ?InputValueDefinitionNode ,
1267
- } ;
1267
+ | } ;
1268
1268
1269
1269
export type GraphQLInputFieldConfigMap = ObjMap < GraphQLInputFieldConfig > ;
1270
1270
0 commit comments