File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -67,18 +67,17 @@ export function assertType(type: mixed): GraphQLType {
67
67
/**
68
68
* These types may be used as input types for arguments and directives.
69
69
*/
70
- type GraphQLInputType_ < T > =
70
+ export type GraphQLInputType =
71
71
| GraphQLScalarType
72
72
| GraphQLEnumType
73
73
| GraphQLInputObjectType
74
- | GraphQLList < T >
74
+ | GraphQLList < GraphQLInputType >
75
75
| GraphQLNonNull <
76
76
| GraphQLScalarType
77
77
| GraphQLEnumType
78
78
| GraphQLInputObjectType
79
- | GraphQLList < T > ,
79
+ | GraphQLList < GraphQLInputType > ,
80
80
> ;
81
- export type GraphQLInputType = GraphQLInputType_ < * > ;
82
81
83
82
export function isInputType ( type : ?GraphQLType ) : boolean % checks {
84
83
return (
@@ -200,15 +199,14 @@ export function assertAbstractType(type: ?GraphQLType): GraphQLAbstractType {
200
199
/**
201
200
* These types can all accept null as a value.
202
201
*/
203
- type GraphQLNullableType_ < T > =
202
+ export type GraphQLNullableType =
204
203
| GraphQLScalarType
205
204
| GraphQLObjectType
206
205
| GraphQLInterfaceType
207
206
| GraphQLUnionType
208
207
| GraphQLEnumType
209
208
| GraphQLInputObjectType
210
- | GraphQLList < T > ;
211
- export type GraphQLNullableType = GraphQLNullableType_ < * > ;
209
+ | GraphQLList < * > ;
212
210
213
211
export function getNullableType < T : GraphQLType > (
214
212
type : ?T ,
You can’t perform that action at this time.
0 commit comments