@@ -297,7 +297,7 @@ export class GraphQLScalarType {
297
297
298
298
_scalarConfig : GraphQLScalarTypeConfig < * , * > ;
299
299
300
- constructor ( config : GraphQLScalarTypeConfig < * , * > ) {
300
+ constructor ( config : GraphQLScalarTypeConfig < * , * > ) : void {
301
301
assertValidName ( config . name ) ;
302
302
this . name = config . name ;
303
303
this . description = config . description ;
@@ -417,7 +417,7 @@ export class GraphQLObjectType {
417
417
_fields : GraphQLFieldMap < * , * > ;
418
418
_interfaces : Array < GraphQLInterfaceType > ;
419
419
420
- constructor ( config : GraphQLObjectTypeConfig < * , * > ) {
420
+ constructor ( config : GraphQLObjectTypeConfig < * , * > ) : void {
421
421
assertValidName ( config . name , config . isIntrospection ) ;
422
422
this . name = config . name ;
423
423
this . description = config . description ;
@@ -696,7 +696,7 @@ export class GraphQLInterfaceType {
696
696
_typeConfig : GraphQLInterfaceTypeConfig < * , * > ;
697
697
_fields : GraphQLFieldMap < * , * > ;
698
698
699
- constructor ( config : GraphQLInterfaceTypeConfig < * , * > ) {
699
+ constructor ( config : GraphQLInterfaceTypeConfig < * , * > ) : void {
700
700
assertValidName ( config . name ) ;
701
701
this . name = config . name ;
702
702
this . description = config . description ;
@@ -774,7 +774,7 @@ export class GraphQLUnionType {
774
774
_types : Array < GraphQLObjectType > ;
775
775
_possibleTypeNames : { [ typeName : string ] : boolean } ;
776
776
777
- constructor ( config : GraphQLUnionTypeConfig < * , * > ) {
777
+ constructor ( config : GraphQLUnionTypeConfig < * , * > ) : void {
778
778
assertValidName ( config . name ) ;
779
779
this . name = config . name ;
780
780
this . description = config . description ;
@@ -888,7 +888,7 @@ export class GraphQLEnumType/* <T> */ {
888
888
_valueLookup : Map < any /* T */ , GraphQLEnumValue > ;
889
889
_nameLookup : { [ valueName : string ] : GraphQLEnumValue } ;
890
890
891
- constructor ( config : GraphQLEnumTypeConfig /* <T> */ ) {
891
+ constructor ( config : GraphQLEnumTypeConfig /* <T> */ ) : void {
892
892
this. name = config . name ;
893
893
assertValidName ( config . name , config . isIntrospection ) ;
894
894
this . description = config . description ;
@@ -1067,7 +1067,7 @@ export class GraphQLInputObjectType {
1067
1067
_typeConfig : GraphQLInputObjectTypeConfig ;
1068
1068
_fields : GraphQLInputFieldMap ;
1069
1069
1070
- constructor ( config : GraphQLInputObjectTypeConfig ) {
1070
+ constructor ( config : GraphQLInputObjectTypeConfig ) : void {
1071
1071
assertValidName ( config . name ) ;
1072
1072
this . name = config . name ;
1073
1073
this . description = config . description ;
@@ -1176,7 +1176,7 @@ export type GraphQLInputFieldMap = {
1176
1176
export class GraphQLList < T : GraphQLType > {
1177
1177
ofType : T ;
1178
1178
1179
- constructor ( type : T ) {
1179
+ constructor ( type : T ) : void {
1180
1180
invariant (
1181
1181
isType ( type ) ,
1182
1182
`Can only create List of a GraphQLType but got: ${ String ( type ) } .`
@@ -1221,7 +1221,7 @@ GraphQLList.prototype.toJSON =
1221
1221
export class GraphQLNonNull < T : GraphQLNullableType > {
1222
1222
ofType : T ;
1223
1223
1224
- constructor ( type : T ) {
1224
+ constructor ( type : T ) : void {
1225
1225
invariant (
1226
1226
isType ( type ) && ! ( type instanceof GraphQLNonNull ) ,
1227
1227
'Can only create NonNull of a Nullable GraphQLType but got: ' +
0 commit comments