summaryrefslogtreecommitdiff
path: root/node_modules/lilconfig/dist/index.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/lilconfig/dist/index.d.ts')
-rw-r--r--node_modules/lilconfig/dist/index.d.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/node_modules/lilconfig/dist/index.d.ts b/node_modules/lilconfig/dist/index.d.ts
index 766c58ce..5a0c2db3 100644
--- a/node_modules/lilconfig/dist/index.d.ts
+++ b/node_modules/lilconfig/dist/index.d.ts
@@ -4,6 +4,7 @@ export declare type LilconfigResult = null | {
isEmpty?: boolean;
};
interface OptionsBase {
+ cache?: boolean;
stopDir?: string;
searchPlaces?: string[];
ignoreEmptySearchPlaces?: boolean;
@@ -25,14 +26,19 @@ export interface OptionsSync extends OptionsBase {
transform?: TransformSync;
}
export declare const defaultLoaders: LoadersSync;
+declare type ClearCaches = {
+ clearLoadCache: () => void;
+ clearSearchCache: () => void;
+ clearCaches: () => void;
+};
declare type AsyncSearcher = {
search(searchFrom?: string): Promise<LilconfigResult>;
load(filepath: string): Promise<LilconfigResult>;
-};
+} & ClearCaches;
export declare function lilconfig(name: string, options?: Partial<Options>): AsyncSearcher;
declare type SyncSearcher = {
search(searchFrom?: string): LilconfigResult;
load(filepath: string): LilconfigResult;
-};
+} & ClearCaches;
export declare function lilconfigSync(name: string, options?: OptionsSync): SyncSearcher;
export {};