1 | export declare 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 declare type IGraphQLConfig = IGraphQLProject | IGraphQLProjects | IGraphQLProjectLegacy;
|
22 |
|
23 |
|
24 |
|
25 | export interface IGraphQLProjectLegacy {
|
26 | schemaPath: string;
|
27 | includes?: string[];
|
28 | excludes?: string[];
|
29 | extensions?: {
|
30 | [name: string]: any;
|
31 | };
|
32 | }
|
33 | export declare type WithList<T> = T | T[];
|
34 | export declare type ElementOf<TList> = TList extends Array<infer TElement> ? TElement : never;
|
35 | export declare type SchemaPointer = WithList<string>;
|
36 | export declare type SchemaPointerSingle = ElementOf<SchemaPointer>;
|
37 | export declare type DocumentGlobPathPointer = string;
|
38 | export declare type DocumentPointer = WithList<DocumentGlobPathPointer>;
|
39 |
|
40 |
|
41 |
|
42 | export interface IGraphQLProject {
|
43 | schema: SchemaPointer;
|
44 | documents?: DocumentPointer;
|
45 | extensions?: IExtensions;
|
46 | include?: string | string[];
|
47 | exclude?: string | string[];
|
48 | }
|
49 | export interface GraphQLConfigResult {
|
50 | config: IGraphQLConfig;
|
51 | filepath: string;
|
52 | }
|
53 |
|
\ | No newline at end of file |