From 326348ea6926dac0a72a4b719d2fec00326211e9 Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Sun, 28 Mar 2021 09:04:23 -0500 Subject: [PATCH] fix: update introspection types (#2991) --- src/utilities/getIntrospectionQuery.d.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/utilities/getIntrospectionQuery.d.ts b/src/utilities/getIntrospectionQuery.d.ts index 6e5fad16e6..fd550ad36c 100644 --- a/src/utilities/getIntrospectionQuery.d.ts +++ b/src/utilities/getIntrospectionQuery.d.ts @@ -31,6 +31,7 @@ export interface IntrospectionQuery { } export interface IntrospectionSchema { + readonly description?: Maybe; readonly queryType: IntrospectionNamedTypeRef; readonly mutationType: Maybe< IntrospectionNamedTypeRef @@ -131,25 +132,25 @@ export interface IntrospectionNonNullTypeRef< export type IntrospectionTypeRef = | IntrospectionNamedTypeRef - | IntrospectionListTypeRef + | IntrospectionListTypeRef | IntrospectionNonNullTypeRef< - IntrospectionNamedTypeRef | IntrospectionListTypeRef + IntrospectionNamedTypeRef | IntrospectionListTypeRef >; export type IntrospectionOutputTypeRef = | IntrospectionNamedTypeRef - | IntrospectionListTypeRef + | IntrospectionListTypeRef | IntrospectionNonNullTypeRef< | IntrospectionNamedTypeRef - | IntrospectionListTypeRef + | IntrospectionListTypeRef >; export type IntrospectionInputTypeRef = | IntrospectionNamedTypeRef - | IntrospectionListTypeRef + | IntrospectionListTypeRef | IntrospectionNonNullTypeRef< | IntrospectionNamedTypeRef - | IntrospectionListTypeRef + | IntrospectionListTypeRef >; export interface IntrospectionNamedTypeRef< @@ -165,14 +166,14 @@ export interface IntrospectionField { readonly args: ReadonlyArray; readonly type: IntrospectionOutputTypeRef; readonly isDeprecated: boolean; - readonly deprecationReason?: Maybe; + readonly deprecationReason: Maybe; } export interface IntrospectionInputValue { readonly name: string; readonly description?: Maybe; readonly type: IntrospectionInputTypeRef; - readonly defaultValue?: Maybe; + readonly defaultValue: Maybe; readonly isDeprecated?: boolean; readonly deprecationReason?: Maybe; } @@ -181,7 +182,7 @@ export interface IntrospectionEnumValue { readonly name: string; readonly description?: Maybe; readonly isDeprecated: boolean; - readonly deprecationReason?: Maybe; + readonly deprecationReason: Maybe; } export interface IntrospectionDirective {