@@ -2,6 +2,8 @@ import type { Maybe } from '../jsutils/Maybe.js';
22
33import type { DirectiveLocation } from '../language/directiveLocation.js' ;
44
5+ import type { TypeKind } from '../type/introspection.js' ;
6+
57export interface IntrospectionOptions {
68 /**
79 * Whether to include descriptions in the introspection result.
@@ -218,14 +220,14 @@ export type IntrospectionInputType =
218220 | IntrospectionInputObjectType ;
219221
220222export interface IntrospectionScalarType {
221- readonly kind : ' SCALAR' ;
223+ readonly kind : TypeKind . SCALAR ;
222224 readonly name : string ;
223225 readonly description ?: Maybe < string > ;
224226 readonly specifiedByURL ?: Maybe < string > ;
225227}
226228
227229export interface IntrospectionObjectType {
228- readonly kind : ' OBJECT' ;
230+ readonly kind : TypeKind . OBJECT ;
229231 readonly name : string ;
230232 readonly description ?: Maybe < string > ;
231233 readonly fields : ReadonlyArray < IntrospectionField > ;
@@ -235,7 +237,7 @@ export interface IntrospectionObjectType {
235237}
236238
237239export interface IntrospectionInterfaceType {
238- readonly kind : ' INTERFACE' ;
240+ readonly kind : TypeKind . INTERFACE ;
239241 readonly name : string ;
240242 readonly description ?: Maybe < string > ;
241243 readonly fields : ReadonlyArray < IntrospectionField > ;
@@ -248,7 +250,7 @@ export interface IntrospectionInterfaceType {
248250}
249251
250252export interface IntrospectionUnionType {
251- readonly kind : ' UNION' ;
253+ readonly kind : TypeKind . UNION ;
252254 readonly name : string ;
253255 readonly description ?: Maybe < string > ;
254256 readonly possibleTypes : ReadonlyArray <
@@ -257,14 +259,14 @@ export interface IntrospectionUnionType {
257259}
258260
259261export interface IntrospectionEnumType {
260- readonly kind : ' ENUM' ;
262+ readonly kind : TypeKind . ENUM ;
261263 readonly name : string ;
262264 readonly description ?: Maybe < string > ;
263265 readonly enumValues : ReadonlyArray < IntrospectionEnumValue > ;
264266}
265267
266268export interface IntrospectionInputObjectType {
267- readonly kind : ' INPUT_OBJECT' ;
269+ readonly kind : TypeKind . INPUT_OBJECT ;
268270 readonly name : string ;
269271 readonly description ?: Maybe < string > ;
270272 readonly inputFields : ReadonlyArray < IntrospectionInputValue > ;
@@ -274,14 +276,14 @@ export interface IntrospectionInputObjectType {
274276export interface IntrospectionListTypeRef <
275277 T extends IntrospectionTypeRef = IntrospectionTypeRef ,
276278> {
277- readonly kind : ' LIST' ;
279+ readonly kind : TypeKind . LIST ;
278280 readonly ofType : T ;
279281}
280282
281283export interface IntrospectionNonNullTypeRef <
282284 T extends IntrospectionTypeRef = IntrospectionTypeRef ,
283285> {
284- readonly kind : ' NON_NULL' ;
286+ readonly kind : TypeKind . NON_NULL ;
285287 readonly ofType : T ;
286288}
287289
0 commit comments