graphql-config
Version:
The easiest way to configure your development environment with your GraphQL schema (supported by most tools, editors & IDEs)
41 lines • 1.24 kB
TypeScript
export interface ConfigSearchResult {
config: any;
filepath: string;
isEmpty?: boolean;
}
export declare function isLegacyConfig(filepath: string): boolean;
export declare function createCosmiConfig(moduleName: string, { legacy, }: {
legacy: boolean;
}): {
readonly search: (searchFrom?: string) => Promise<{
config: any;
filepath: string;
isEmpty?: boolean;
}>;
readonly load: (filepath: string) => Promise<{
config: any;
filepath: string;
isEmpty?: boolean;
}>;
readonly clearLoadCache: () => void;
readonly clearSearchCache: () => void;
readonly clearCaches: () => void;
};
export declare function createCosmiConfigSync(moduleName: string, { legacy }: {
legacy: boolean;
}): {
readonly search: (searchFrom?: string) => {
config: any;
filepath: string;
isEmpty?: boolean;
};
readonly load: (filepath: string) => {
config: any;
filepath: string;
isEmpty?: boolean;
};
readonly clearLoadCache: () => void;
readonly clearSearchCache: () => void;
readonly clearCaches: () => void;
};
//# sourceMappingURL=cosmiconfig.d.ts.map