Skip to content

Commit

Permalink
fix: update introspection types (#2991)
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj committed Mar 28, 2021
1 parent d4bcde8 commit 326348e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/utilities/getIntrospectionQuery.d.ts
Expand Up @@ -31,6 +31,7 @@ export interface IntrospectionQuery {
}

export interface IntrospectionSchema {
readonly description?: Maybe<string>;
readonly queryType: IntrospectionNamedTypeRef<IntrospectionObjectType>;
readonly mutationType: Maybe<
IntrospectionNamedTypeRef<IntrospectionObjectType>
Expand Down Expand Up @@ -131,25 +132,25 @@ export interface IntrospectionNonNullTypeRef<

export type IntrospectionTypeRef =
| IntrospectionNamedTypeRef
| IntrospectionListTypeRef<any>
| IntrospectionListTypeRef
| IntrospectionNonNullTypeRef<
IntrospectionNamedTypeRef | IntrospectionListTypeRef<any>
IntrospectionNamedTypeRef | IntrospectionListTypeRef
>;

export type IntrospectionOutputTypeRef =
| IntrospectionNamedTypeRef<IntrospectionOutputType>
| IntrospectionListTypeRef<any>
| IntrospectionListTypeRef<IntrospectionOutputTypeRef>
| IntrospectionNonNullTypeRef<
| IntrospectionNamedTypeRef<IntrospectionOutputType>
| IntrospectionListTypeRef<any>
| IntrospectionListTypeRef<IntrospectionOutputTypeRef>
>;

export type IntrospectionInputTypeRef =
| IntrospectionNamedTypeRef<IntrospectionInputType>
| IntrospectionListTypeRef<any>
| IntrospectionListTypeRef<IntrospectionInputTypeRef>
| IntrospectionNonNullTypeRef<
| IntrospectionNamedTypeRef<IntrospectionInputType>
| IntrospectionListTypeRef<any>
| IntrospectionListTypeRef<IntrospectionInputTypeRef>
>;

export interface IntrospectionNamedTypeRef<
Expand All @@ -165,14 +166,14 @@ export interface IntrospectionField {
readonly args: ReadonlyArray<IntrospectionInputValue>;
readonly type: IntrospectionOutputTypeRef;
readonly isDeprecated: boolean;
readonly deprecationReason?: Maybe<string>;
readonly deprecationReason: Maybe<string>;
}

export interface IntrospectionInputValue {
readonly name: string;
readonly description?: Maybe<string>;
readonly type: IntrospectionInputTypeRef;
readonly defaultValue?: Maybe<string>;
readonly defaultValue: Maybe<string>;
readonly isDeprecated?: boolean;
readonly deprecationReason?: Maybe<string>;
}
Expand All @@ -181,7 +182,7 @@ export interface IntrospectionEnumValue {
readonly name: string;
readonly description?: Maybe<string>;
readonly isDeprecated: boolean;
readonly deprecationReason?: Maybe<string>;
readonly deprecationReason: Maybe<string>;
}

export interface IntrospectionDirective {
Expand Down

0 comments on commit 326348e

Please sign in to comment.