source: trip-planner-front/node_modules/cosmiconfig/dist/ExplorerBase.d.ts@ 59329aa

Last change on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1import { CosmiconfigResult, ExplorerOptions, ExplorerOptionsSync, Cache, LoadedFileContent } from './types';
2import { Loader } from './index';
3declare class ExplorerBase<T extends ExplorerOptions | ExplorerOptionsSync> {
4 protected readonly loadCache?: Cache;
5 protected readonly searchCache?: Cache;
6 protected readonly config: T;
7 constructor(options: T);
8 clearLoadCache(): void;
9 clearSearchCache(): void;
10 clearCaches(): void;
11 private validateConfig;
12 protected shouldSearchStopWithResult(result: CosmiconfigResult): boolean;
13 protected nextDirectoryToSearch(currentDir: string, currentResult: CosmiconfigResult): string | null;
14 private loadPackageProp;
15 protected getLoaderEntryForFile(filepath: string): Loader;
16 protected loadedContentToCosmiconfigResult(filepath: string, loadedContent: LoadedFileContent): CosmiconfigResult;
17 protected validateFilePath(filepath: string): void;
18}
19declare function getExtensionDescription(filepath: string): string;
20export { ExplorerBase, getExtensionDescription };
21//# sourceMappingURL=ExplorerBase.d.ts.map
Note: See TracBrowser for help on using the repository browser.