1 | import { GraphQLConfigResult } from './types';
|
2 | import { GraphQLProjectConfig } from './project-config';
|
3 | import { GraphQLExtensionDeclaration, GraphQLExtensionsRegistry } from './extension';
|
4 | interface LoadConfigOptions {
|
5 | filepath?: string;
|
6 | rootDir?: string;
|
7 | extensions?: GraphQLExtensionDeclaration[];
|
8 | throwOnMissing?: boolean;
|
9 | throwOnEmpty?: boolean;
|
10 | configName?: string;
|
11 | legacy?: boolean;
|
12 | }
|
13 | export declare function loadConfig(options: LoadConfigOptions): Promise<GraphQLConfig | undefined>;
|
14 | export declare function loadConfigSync(options: LoadConfigOptions): GraphQLConfig;
|
15 | export declare class GraphQLConfig {
|
16 | private readonly _rawConfig;
|
17 | readonly filepath: string;
|
18 | readonly dirpath: string;
|
19 | readonly projects: {
|
20 | [name: string]: GraphQLProjectConfig;
|
21 | };
|
22 | readonly extensions: GraphQLExtensionsRegistry;
|
23 | constructor(raw: GraphQLConfigResult, extensions: GraphQLExtensionDeclaration[]);
|
24 | getProject(name?: string): GraphQLProjectConfig | never;
|
25 | getProjectForFile(filepath: string): GraphQLProjectConfig | never;
|
26 | getDefault(): GraphQLProjectConfig | never;
|
27 | isLegacy(): boolean;
|
28 | }
|
29 | export {};
|
30 |
|
\ | No newline at end of file |