@@ -183,16 +183,16 @@ export function assertListType(type: unknown): GraphQLList<GraphQLType> {
183
183
184
184
export function isNonNullType (
185
185
type : GraphQLInputType ,
186
- ) : type is GraphQLNonNull < GraphQLInputType > ;
186
+ ) : type is GraphQLNonNull < GraphQLNullableInputType > ;
187
187
export function isNonNullType (
188
188
type : GraphQLOutputType ,
189
- ) : type is GraphQLNonNull < GraphQLOutputType > ;
189
+ ) : type is GraphQLNonNull < GraphQLNullableOutputType > ;
190
190
export function isNonNullType (
191
191
type : unknown ,
192
- ) : type is GraphQLNonNull < GraphQLType > ;
192
+ ) : type is GraphQLNonNull < GraphQLNullableType > ;
193
193
export function isNonNullType (
194
194
type : unknown ,
195
- ) : type is GraphQLNonNull < GraphQLType > {
195
+ ) : type is GraphQLNonNull < GraphQLNullableType > {
196
196
return instanceOf ( type , GraphQLNonNull ) ;
197
197
}
198
198
@@ -206,17 +206,15 @@ export function assertNonNullType(type: unknown): GraphQLNonNull<GraphQLType> {
206
206
/**
207
207
* These types may be used as input types for arguments and directives.
208
208
*/
209
- export type GraphQLInputType =
209
+ export type GraphQLNullableInputType =
210
210
| GraphQLScalarType
211
211
| GraphQLEnumType
212
212
| GraphQLInputObjectType
213
- | GraphQLList < GraphQLInputType >
214
- | GraphQLNonNull <
215
- | GraphQLScalarType
216
- | GraphQLEnumType
217
- | GraphQLInputObjectType
218
- | GraphQLList < GraphQLInputType >
219
- > ;
213
+ | GraphQLList < GraphQLInputType > ;
214
+
215
+ export type GraphQLInputType =
216
+ | GraphQLNullableInputType
217
+ | GraphQLNonNull < GraphQLNullableInputType > ;
220
218
221
219
export function isInputType ( type : unknown ) : type is GraphQLInputType {
222
220
return (
@@ -237,21 +235,17 @@ export function assertInputType(type: unknown): GraphQLInputType {
237
235
/**
238
236
* These types may be used as output types as the result of fields.
239
237
*/
240
- export type GraphQLOutputType =
238
+ export type GraphQLNullableOutputType =
241
239
| GraphQLScalarType
242
240
| GraphQLObjectType
243
241
| GraphQLInterfaceType
244
242
| GraphQLUnionType
245
243
| GraphQLEnumType
246
- | GraphQLList < GraphQLOutputType >
247
- | GraphQLNonNull <
248
- | GraphQLScalarType
249
- | GraphQLObjectType
250
- | GraphQLInterfaceType
251
- | GraphQLUnionType
252
- | GraphQLEnumType
253
- | GraphQLList < GraphQLOutputType >
254
- > ;
244
+ | GraphQLList < GraphQLOutputType > ;
245
+
246
+ export type GraphQLOutputType =
247
+ | GraphQLNullableOutputType
248
+ | GraphQLNonNull < GraphQLNullableOutputType > ;
255
249
256
250
export function isOutputType ( type : unknown ) : type is GraphQLOutputType {
257
251
return (
0 commit comments