github-pages-deploy-action/node_modules/graphql-config/lib/GraphQLConfig.d.ts
2020-03-06 22:45:40 -05:00

16 lines
663 B
TypeScript

import { GraphQLConfigData } from './types';
import { GraphQLProjectConfig } from './GraphQLProjectConfig';
export declare class GraphQLConfig {
config: GraphQLConfigData;
configPath: string;
constructor(config: GraphQLConfigData, configPath: string);
readonly configDir: string;
getProjectConfig(projectName?: string): GraphQLProjectConfig;
getConfigForFile(filePath: string): GraphQLProjectConfig | undefined;
getProjectNameForFile(filePath: string): string | undefined;
getProjects(): {
[name: string]: GraphQLProjectConfig;
} | undefined;
saveConfig(newConfig: GraphQLConfigData, projectName?: string): void;
}