@@ -532,7 +532,7 @@ export class GraphQLScalarType {
532
532
astNode : Maybe < ScalarTypeDefinitionNode > ;
533
533
extensionASTNodes : Maybe < ReadonlyArray < ScalarTypeExtensionNode > > ;
534
534
535
- constructor ( config : $ReadOnly < GraphQLScalarTypeConfig < unknown , unknown > > ) {
535
+ constructor ( config : Readonly < GraphQLScalarTypeConfig < unknown , unknown > > ) {
536
536
const parseValue = config . parseValue ?? identityFunc ;
537
537
this . name = config . name ;
538
538
this . description = config . description ;
@@ -679,7 +679,7 @@ export class GraphQLObjectType {
679
679
_fields : Thunk < GraphQLFieldMap < any , any > > ;
680
680
_interfaces : Thunk < Array < GraphQLInterfaceType > > ;
681
681
682
- constructor ( config : $ReadOnly < GraphQLObjectTypeConfig < any , any > > ) {
682
+ constructor ( config : Readonly < GraphQLObjectTypeConfig < any , any > > ) {
683
683
this . name = config . name ;
684
684
this . description = config . description ;
685
685
this . isTypeOf = config . isTypeOf ;
@@ -744,9 +744,9 @@ export class GraphQLObjectType {
744
744
}
745
745
746
746
function defineInterfaces (
747
- config : $ReadOnly <
747
+ config : Readonly <
748
748
| GraphQLObjectTypeConfig < unknown , unknown >
749
- | GraphQLInterfaceTypeConfig < unknown , unknown > ,
749
+ | GraphQLInterfaceTypeConfig < unknown , unknown >
750
750
> ,
751
751
) : Array < GraphQLInterfaceType > {
752
752
const interfaces = resolveThunk ( config . interfaces ) ?? [ ] ;
@@ -758,9 +758,9 @@ function defineInterfaces(
758
758
}
759
759
760
760
function defineFieldMap < TSource , TContext > (
761
- config : $ReadOnly <
761
+ config : Readonly <
762
762
| GraphQLObjectTypeConfig < TSource , TContext >
763
- | GraphQLInterfaceTypeConfig < TSource , TContext > ,
763
+ | GraphQLInterfaceTypeConfig < TSource , TContext >
764
764
> ,
765
765
) : GraphQLFieldMap < TSource , TContext > {
766
766
const fieldMap = resolveThunk ( config . fields ) ;
@@ -993,7 +993,7 @@ export class GraphQLInterfaceType {
993
993
_fields : Thunk < GraphQLFieldMap < any , any > > ;
994
994
_interfaces : Thunk < Array < GraphQLInterfaceType > > ;
995
995
996
- constructor ( config : $ReadOnly < GraphQLInterfaceTypeConfig < any , any > > ) {
996
+ constructor ( config : Readonly < GraphQLInterfaceTypeConfig < any , any > > ) {
997
997
this . name = config . name ;
998
998
this . description = config . description ;
999
999
this . resolveType = config . resolveType ;
@@ -1106,7 +1106,7 @@ export class GraphQLUnionType {
1106
1106
1107
1107
_types : Thunk < Array < GraphQLObjectType > > ;
1108
1108
1109
- constructor ( config : $ReadOnly < GraphQLUnionTypeConfig < any , any > > ) {
1109
+ constructor ( config : Readonly < GraphQLUnionTypeConfig < any , any > > ) {
1110
1110
this . name = config . name ;
1111
1111
this . description = config . description ;
1112
1112
this . resolveType = config . resolveType ;
@@ -1161,7 +1161,7 @@ export class GraphQLUnionType {
1161
1161
}
1162
1162
1163
1163
function defineTypes (
1164
- config : $ReadOnly < GraphQLUnionTypeConfig < unknown , unknown > > ,
1164
+ config : Readonly < GraphQLUnionTypeConfig < unknown , unknown > > ,
1165
1165
) : Array < GraphQLObjectType > {
1166
1166
const types = resolveThunk ( config . types ) ;
1167
1167
devAssert (
@@ -1218,7 +1218,7 @@ export class GraphQLEnumType /* <T> */ {
1218
1218
_valueLookup : Map < any /* T */ , GraphQLEnumValue > ;
1219
1219
_nameLookup : ObjMap < GraphQLEnumValue > ;
1220
1220
1221
- constructor ( config : $ReadOnly < GraphQLEnumTypeConfig /* <T> */ > ) {
1221
+ constructor ( config : Readonly < GraphQLEnumTypeConfig /* <T> */ > ) {
1222
1222
this . name = config . name ;
1223
1223
this . description = config . description ;
1224
1224
this . extensions = config . extensions && toObjMap ( config . extensions ) ;
@@ -1426,7 +1426,7 @@ export class GraphQLInputObjectType {
1426
1426
1427
1427
_fields : Thunk < GraphQLInputFieldMap > ;
1428
1428
1429
- constructor ( config : $ReadOnly < GraphQLInputObjectTypeConfig > ) {
1429
+ constructor ( config : Readonly < GraphQLInputObjectTypeConfig > ) {
1430
1430
this . name = config . name ;
1431
1431
this . description = config . description ;
1432
1432
this . extensions = config . extensions && toObjMap ( config . extensions ) ;
@@ -1482,7 +1482,7 @@ export class GraphQLInputObjectType {
1482
1482
}
1483
1483
1484
1484
function defineInputFieldMap (
1485
- config : $ReadOnly < GraphQLInputObjectTypeConfig > ,
1485
+ config : Readonly < GraphQLInputObjectTypeConfig > ,
1486
1486
) : GraphQLInputFieldMap {
1487
1487
const fieldMap = resolveThunk ( config . fields ) ;
1488
1488
devAssert (
0 commit comments