Blame view

天文台pc/tianwentai-ui/node_modules/cosmiconfig/dist/ExplorerBase.d.ts 1.07 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  import { CosmiconfigResult, ExplorerOptions, ExplorerOptionsSync, Cache, LoadedFileContent } from './types';
  import { Loader } from './index';
  declare class ExplorerBase<T extends ExplorerOptions | ExplorerOptionsSync> {
      protected readonly loadCache?: Cache;
      protected readonly searchCache?: Cache;
      protected readonly config: T;
      constructor(options: T);
      clearLoadCache(): void;
      clearSearchCache(): void;
      clearCaches(): void;
      private validateConfig;
      protected shouldSearchStopWithResult(result: CosmiconfigResult): boolean;
      protected nextDirectoryToSearch(currentDir: string, currentResult: CosmiconfigResult): string | null;
      private loadPackageProp;
      protected getLoaderEntryForFile(filepath: string): Loader;
      protected loadedContentToCosmiconfigResult(filepath: string, loadedContent: LoadedFileContent): CosmiconfigResult;
      protected validateFilePath(filepath: string): void;
  }
  declare function getExtensionDescription(filepath: string): string;
  export { ExplorerBase, getExtensionDescription };
  //# sourceMappingURL=ExplorerBase.d.ts.map