textlint
Version:
The pluggable linting tool for text and markdown.
38 lines • 869 B
TypeScript
import { AbstractBacker } from "./abstruct-backer";
import { TextlintResult } from "@textlint/kernel";
export type CacheBackerOptions = {
/**
* enable cache
*/
cache: boolean;
/**
* path to cache file
*/
cacheLocation: string;
/**
* Config hash value
*/
hash: string;
};
export declare class CacheBacker implements AbstractBacker {
private config;
private fileCache;
private isEnabled;
constructor(config: CacheBackerOptions);
/**
* @param {string} filePath
* @returns {boolean}
*/
shouldExecute({ filePath }: {
filePath: string;
}): boolean;
didExecute<R extends TextlintResult>({ result }: {
result: R;
}): void;
/**
* destroy all cache
*/
destroyCache(): void;
afterAll(): void;
}
//# sourceMappingURL=cache-backer.d.ts.map