1 | export type PointerWithConfiguration<T = any> = {
|
2 | [key: string]: T;
|
3 | };
|
4 |
|
5 |
|
6 |
|
7 | export interface IExtensions {
|
8 | [name: string]: any;
|
9 | }
|
10 |
|
11 |
|
12 |
|
13 | export interface IGraphQLProjects {
|
14 | projects: {
|
15 | [name: string]: IGraphQLProject | IGraphQLProjectLegacy;
|
16 | };
|
17 | }
|
18 |
|
19 |
|
20 |
|
21 | export type IGraphQLConfig = IGraphQLProject | IGraphQLProjects | IGraphQLProjectLegacy;
|
22 |
|
23 |
|
24 |
|
25 | export interface IGraphQLProjectLegacy {
|
26 | schemaPath: string;
|
27 | includes?: string[];
|
28 | excludes?: string[];
|
29 | extensions?: IExtensions;
|
30 | }
|
31 | export declare type WithList<T> = T | T[];
|
32 | export declare type ElementOf<TList> = TList extends Array<infer TElement> ? TElement : never;
|
33 | export declare type SchemaPointer = WithList<string | {
|
34 | [url: string]: {
|
35 | headers: {
|
36 | [name: string]: string;
|
37 | };
|
38 | };
|
39 | }>;
|
40 | export declare type SchemaPointerSingle = ElementOf<SchemaPointer>;
|
41 | export declare type DocumentGlobPathPointer = string;
|
42 | export declare type DocumentPointer = WithList<DocumentGlobPathPointer>;
|
43 |
|
44 |
|
45 |
|
46 | export interface IGraphQLProject {
|
47 | schema: SchemaPointer;
|
48 | documents?: DocumentPointer;
|
49 | extensions?: IExtensions;
|
50 | include?: WithList<string>;
|
51 | exclude?: WithList<string>;
|
52 | }
|
53 | export interface GraphQLConfigResult {
|
54 | config: IGraphQLConfig;
|
55 | filepath: string;
|
56 | }
|
57 |
|
\ | No newline at end of file |