This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
admin-panel/graphql-types/node_modules/graphql-config/config.d.ts

30 lines
1.2 KiB
TypeScript

import { GraphQLConfigResult } from './types';
import { GraphQLProjectConfig } from './project-config';
import { GraphQLExtensionDeclaration, GraphQLExtensionsRegistry } from './extension';
interface LoadConfigOptions {
filepath?: string;
rootDir?: string;
extensions?: GraphQLExtensionDeclaration[];
throwOnMissing?: boolean;
throwOnEmpty?: boolean;
configName?: string;
legacy?: boolean;
}
export declare function loadConfig(options: LoadConfigOptions): Promise<GraphQLConfig | undefined>;
export declare function loadConfigSync(options: LoadConfigOptions): GraphQLConfig;
export declare class GraphQLConfig {
private readonly _rawConfig;
readonly filepath: string;
readonly dirpath: string;
readonly projects: {
[name: string]: GraphQLProjectConfig;
};
readonly extensions: GraphQLExtensionsRegistry;
constructor(raw: GraphQLConfigResult, extensions: GraphQLExtensionDeclaration[]);
getProject(name?: string): GraphQLProjectConfig | never;
getProjectForFile(filepath: string): GraphQLProjectConfig | never;
getDefault(): GraphQLProjectConfig | never;
isLegacy(): boolean;
}
export {};
//# sourceMappingURL=config.d.ts.map