@@ -2,6 +2,8 @@ import type { Maybe } from '../jsutils/Maybe.js';
2
2
3
3
import type { DirectiveLocation } from '../language/directiveLocation.js' ;
4
4
5
+ import type { TypeKind } from '../type/introspection.js' ;
6
+
5
7
export interface IntrospectionOptions {
6
8
/**
7
9
* Whether to include descriptions in the introspection result.
@@ -218,14 +220,14 @@ export type IntrospectionInputType =
218
220
| IntrospectionInputObjectType ;
219
221
220
222
export interface IntrospectionScalarType {
221
- readonly kind : ' SCALAR' ;
223
+ readonly kind : TypeKind . SCALAR ;
222
224
readonly name : string ;
223
225
readonly description ?: Maybe < string > ;
224
226
readonly specifiedByURL ?: Maybe < string > ;
225
227
}
226
228
227
229
export interface IntrospectionObjectType {
228
- readonly kind : ' OBJECT' ;
230
+ readonly kind : TypeKind . OBJECT ;
229
231
readonly name : string ;
230
232
readonly description ?: Maybe < string > ;
231
233
readonly fields : ReadonlyArray < IntrospectionField > ;
@@ -235,7 +237,7 @@ export interface IntrospectionObjectType {
235
237
}
236
238
237
239
export interface IntrospectionInterfaceType {
238
- readonly kind : ' INTERFACE' ;
240
+ readonly kind : TypeKind . INTERFACE ;
239
241
readonly name : string ;
240
242
readonly description ?: Maybe < string > ;
241
243
readonly fields : ReadonlyArray < IntrospectionField > ;
@@ -248,7 +250,7 @@ export interface IntrospectionInterfaceType {
248
250
}
249
251
250
252
export interface IntrospectionUnionType {
251
- readonly kind : ' UNION' ;
253
+ readonly kind : TypeKind . UNION ;
252
254
readonly name : string ;
253
255
readonly description ?: Maybe < string > ;
254
256
readonly possibleTypes : ReadonlyArray <
@@ -257,14 +259,14 @@ export interface IntrospectionUnionType {
257
259
}
258
260
259
261
export interface IntrospectionEnumType {
260
- readonly kind : ' ENUM' ;
262
+ readonly kind : TypeKind . ENUM ;
261
263
readonly name : string ;
262
264
readonly description ?: Maybe < string > ;
263
265
readonly enumValues : ReadonlyArray < IntrospectionEnumValue > ;
264
266
}
265
267
266
268
export interface IntrospectionInputObjectType {
267
- readonly kind : ' INPUT_OBJECT' ;
269
+ readonly kind : TypeKind . INPUT_OBJECT ;
268
270
readonly name : string ;
269
271
readonly description ?: Maybe < string > ;
270
272
readonly inputFields : ReadonlyArray < IntrospectionInputValue > ;
@@ -274,14 +276,14 @@ export interface IntrospectionInputObjectType {
274
276
export interface IntrospectionListTypeRef <
275
277
T extends IntrospectionTypeRef = IntrospectionTypeRef ,
276
278
> {
277
- readonly kind : ' LIST' ;
279
+ readonly kind : TypeKind . LIST ;
278
280
readonly ofType : T ;
279
281
}
280
282
281
283
export interface IntrospectionNonNullTypeRef <
282
284
T extends IntrospectionTypeRef = IntrospectionTypeRef ,
283
285
> {
284
- readonly kind : ' NON_NULL' ;
286
+ readonly kind : TypeKind . NON_NULL ;
285
287
readonly ofType : T ;
286
288
}
287
289
0 commit comments