You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
883 B
27 lines
883 B
import * as ts from 'typescript';
|
|
import { RuleFailure } from 'tslint';
|
|
import { CLIEngine } from 'eslint';
|
|
export interface DataShape {
|
|
source?: ts.SourceFile;
|
|
linted: boolean;
|
|
tslints: RuleFailure[];
|
|
eslints: CLIEngine.LintReport[];
|
|
}
|
|
export declare class FilesRegister {
|
|
private dataFactory;
|
|
private files;
|
|
constructor(dataFactory: (_data?: DataShape) => DataShape);
|
|
keys(): string[];
|
|
add(filePath: string): void;
|
|
remove(filePath: string): void;
|
|
has(filePath: string): boolean;
|
|
get(filePath: string): {
|
|
mtime?: number | undefined;
|
|
data: DataShape;
|
|
};
|
|
ensure(filePath: string): void;
|
|
getData(filePath: string): DataShape;
|
|
mutateData(filePath: string, mutator: (data: DataShape) => void): void;
|
|
getMtime(filePath: string): number | undefined;
|
|
setMtime(filePath: string, mtime: number): void;
|
|
}
|
|
|