github-pages-deploy-action/node_modules/graphql-config/lib/GraphQLConfig.d.ts

16 lines
663 B
TypeScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
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;
}