@@ -546,14 +546,14 @@ function undefineIfEmpty<T>(arr: ?$ReadOnlyArray<T>): ?$ReadOnlyArray<T> {
546
546
export class GraphQLScalarType {
547
547
name : string ;
548
548
description : ?string ;
549
- serialize : GraphQLScalarSerializer < * > ;
550
- parseValue : GraphQLScalarValueParser < * > ;
551
- parseLiteral : GraphQLScalarLiteralParser < * > ;
549
+ serialize : GraphQLScalarSerializer < mixed > ;
550
+ parseValue : GraphQLScalarValueParser < mixed > ;
551
+ parseLiteral : GraphQLScalarLiteralParser < mixed > ;
552
552
extensions : ?ReadOnlyObjMap < mixed > ;
553
553
astNode : ?ScalarTypeDefinitionNode ;
554
554
extensionASTNodes : ?$ReadOnlyArray < ScalarTypeExtensionNode > ;
555
555
556
- constructor ( config : GraphQLScalarTypeConfig < * , * > ) : void {
556
+ constructor ( config : GraphQLScalarTypeConfig < mixed , mixed > ) : void {
557
557
const parseValue = config . parseValue || identityFunc ;
558
558
this . name = config . name ;
559
559
this . description = config . description ;
@@ -581,10 +581,10 @@ export class GraphQLScalarType {
581
581
}
582
582
583
583
toConfig(): {|
584
- ...GraphQLScalarTypeConfig < * , * > ,
585
- serialize : GraphQLScalarSerializer < * > ,
586
- parseValue : GraphQLScalarValueParser < * > ,
587
- parseLiteral : GraphQLScalarLiteralParser < * > ,
584
+ ...GraphQLScalarTypeConfig<mixed, mixed >,
585
+ serialize: GraphQLScalarSerializer<mixed >,
586
+ parseValue: GraphQLScalarValueParser<mixed >,
587
+ parseLiteral: GraphQLScalarLiteralParser<mixed >,
588
588
extensions: ?ReadOnlyObjMap<mixed>,
589
589
extensionASTNodes: ?$ReadOnlyArray<ScalarTypeExtensionNode>,
590
590
|} {
@@ -670,15 +670,15 @@ export type GraphQLScalarTypeConfig<TInternal, TExternal> = {|
670
670
export class GraphQLObjectType {
671
671
name: string;
672
672
description: ?string;
673
- isTypeOf : ?GraphQLIsTypeOfFn < * , * > ;
673
+ isTypeOf: ?GraphQLIsTypeOfFn<any, any >;
674
674
extensions: ?ReadOnlyObjMap<mixed>;
675
675
astNode: ?ObjectTypeDefinitionNode;
676
676
extensionASTNodes: ?$ReadOnlyArray<ObjectTypeExtensionNode>;
677
677
678
- _fields : Thunk < GraphQLFieldMap < * , * > > ;
678
+ _fields: Thunk<GraphQLFieldMap<any, any >>;
679
679
_interfaces: Thunk<Array<GraphQLInterfaceType>>;
680
680
681
- constructor ( config : GraphQLObjectTypeConfig < * , * > ) : void {
681
+ constructor(config: GraphQLObjectTypeConfig<any, any >): void {
682
682
this.name = config.name;
683
683
this.description = config.description;
684
684
this.isTypeOf = config.isTypeOf;
@@ -696,7 +696,7 @@ export class GraphQLObjectType {
696
696
) ;
697
697
}
698
698
699
- getFields ( ) : GraphQLFieldMap < * , * > {
699
+ getFields ( ) : GraphQLFieldMap < any , any > {
700
700
if ( typeof this . _fields === 'function' ) {
701
701
this . _fields = this . _fields ( ) ;
702
702
}
@@ -711,9 +711,9 @@ export class GraphQLObjectType {
711
711
}
712
712
713
713
toConfig ( ) : { |
714
- ...GraphQLObjectTypeConfig < * , * > ,
714
+ ...GraphQLObjectTypeConfig < any , any > ,
715
715
interfaces : Array < GraphQLInterfaceType > ,
716
- fields : GraphQLFieldConfigMap < * , * > ,
716
+ fields : GraphQLFieldConfigMap < any , any > ,
717
717
extensions : ?ReadOnlyObjMap < mixed > ,
718
718
extensionASTNodes : ?$ReadOnlyArray < ObjectTypeExtensionNode > ,
719
719
| } {
@@ -975,15 +975,15 @@ export type GraphQLFieldMap<TSource, TContext> = ObjMap<
975
975
export class GraphQLInterfaceType {
976
976
name : string ;
977
977
description : ?string ;
978
- resolveType : ?GraphQLTypeResolver < * , * > ;
978
+ resolveType : ?GraphQLTypeResolver < any , any > ;
979
979
extensions : ?ReadOnlyObjMap < mixed > ;
980
980
astNode : ?InterfaceTypeDefinitionNode ;
981
981
extensionASTNodes : ?$ReadOnlyArray < InterfaceTypeExtensionNode > ;
982
982
983
- _fields : Thunk < GraphQLFieldMap < * , * >> ;
983
+ _fields : Thunk < GraphQLFieldMap < any , any > > ;
984
984
_interfaces : Thunk < Array < GraphQLInterfaceType >> ;
985
985
986
- constructor ( config : GraphQLInterfaceTypeConfig < * , * > ) : void {
986
+ constructor ( config : GraphQLInterfaceTypeConfig < any , any > ) : void {
987
987
this. name = config . name ;
988
988
this . description = config . description ;
989
989
this . resolveType = config . resolveType ;
@@ -1001,7 +1001,7 @@ export class GraphQLInterfaceType {
1001
1001
) ;
1002
1002
}
1003
1003
1004
- getFields ( ) : GraphQLFieldMap < * , * > {
1004
+ getFields ( ) : GraphQLFieldMap < any , any > {
1005
1005
if ( typeof this . _fields === 'function' ) {
1006
1006
this . _fields = this . _fields ( ) ;
1007
1007
}
@@ -1016,9 +1016,9 @@ export class GraphQLInterfaceType {
1016
1016
}
1017
1017
1018
1018
toConfig ( ) : { |
1019
- ...GraphQLInterfaceTypeConfig < * , * > ,
1019
+ ...GraphQLInterfaceTypeConfig < any , any > ,
1020
1020
interfaces : Array < GraphQLInterfaceType > ,
1021
- fields : GraphQLFieldConfigMap < * , * > ,
1021
+ fields : GraphQLFieldConfigMap < any , any > ,
1022
1022
extensions : ?ReadOnlyObjMap < mixed > ,
1023
1023
extensionASTNodes : ?$ReadOnlyArray < InterfaceTypeExtensionNode > ,
1024
1024
| } {
@@ -1085,14 +1085,14 @@ export type GraphQLInterfaceTypeConfig<TSource, TContext> = {|
1085
1085
export class GraphQLUnionType {
1086
1086
name : string ;
1087
1087
description : ?string ;
1088
- resolveType : ?GraphQLTypeResolver < * , * > ;
1088
+ resolveType : ?GraphQLTypeResolver < any , any > ;
1089
1089
extensions : ?ReadOnlyObjMap < mixed > ;
1090
1090
astNode : ?UnionTypeDefinitionNode ;
1091
1091
extensionASTNodes : ?$ReadOnlyArray < UnionTypeExtensionNode > ;
1092
1092
1093
1093
_types : Thunk < Array < GraphQLObjectType > > ;
1094
1094
1095
- constructor ( config : GraphQLUnionTypeConfig < * , * > ) : void {
1095
+ constructor ( config : GraphQLUnionTypeConfig < any , any > ) : void {
1096
1096
this. name = config . name ;
1097
1097
this . description = config . description ;
1098
1098
this . resolveType = config . resolveType ;
@@ -1117,7 +1117,7 @@ export class GraphQLUnionType {
1117
1117
}
1118
1118
1119
1119
toConfig ( ) : { |
1120
- ...GraphQLUnionTypeConfig < * , * > ,
1120
+ ...GraphQLUnionTypeConfig < any , any > ,
1121
1121
types : Array < GraphQLObjectType > ,
1122
1122
extensions : ?ReadOnlyObjMap < mixed > ,
1123
1123
extensionASTNodes : ?$ReadOnlyArray < UnionTypeExtensionNode > ,
0 commit comments