Mirror: The spec-compliant minimum of client-side GraphQL.
1export type Or<T, U> = void extends T ? U : T;
2
3export type Maybe<T> = T | undefined | null;
4
5export interface Extensions {
6 [extension: string]: unknown;
7}
8
9export type Source =
10 | any
11 | {
12 body: string;
13 name: string;
14 locationOffset: {
15 line: number;
16 column: number;
17 };
18 };
19
20export type Location =
21 | any
22 | {
23 start: number;
24 end: number;
25 source: Source;
26 };