UNPKG

823 BTypeScriptView Raw
1import { GraphQLConfig, GraphQLConfigData, GraphQLProjectConfig } from 'graphql-config';
2export declare function patchConfig<T extends GraphQLConfig | GraphQLProjectConfig>(config: T, cwd?: string, envVars?: {
3 [key: string]: any;
4}): Promise<T>;
5export declare function getCustomDirectives(version?: string): string[];
6export declare function patchEndpointsToConfig<T extends GraphQLConfig | GraphQLProjectConfig>(config: T, cwd?: string, envVars?: {
7 [key: string]: any;
8}, graceful?: boolean): Promise<T>;
9export declare function patchEndpointsToConfigData(config: GraphQLConfigData, cwd?: string, envVars?: {
10 [key: string]: any;
11}, graceful?: boolean): Promise<GraphQLConfigData>;
12export declare function makeConfigFromPath(cwd?: string, envVars?: {
13 [key: string]: any;
14}): Promise<GraphQLConfig | null>;