1 | import * as ts from 'typescript';
|
2 | import { RuleFailure } from 'tslint';
|
3 | import { CLIEngine } from 'eslint';
|
4 | export interface DataShape {
|
5 | source?: ts.SourceFile;
|
6 | linted: boolean;
|
7 | tslints: RuleFailure[];
|
8 | eslints: CLIEngine.LintReport[];
|
9 | }
|
10 | export declare class FilesRegister {
|
11 | private dataFactory;
|
12 | private files;
|
13 | constructor(dataFactory: (_data?: DataShape) => DataShape);
|
14 | keys(): string[];
|
15 | add(filePath: string): void;
|
16 | remove(filePath: string): void;
|
17 | has(filePath: string): boolean;
|
18 | get(filePath: string): {
|
19 | mtime?: number | undefined;
|
20 | data: DataShape;
|
21 | };
|
22 | ensure(filePath: string): void;
|
23 | getData(filePath: string): DataShape;
|
24 | mutateData(filePath: string, mutator: (data: DataShape) => void): void;
|
25 | getMtime(filePath: string): number | undefined;
|
26 | setMtime(filePath: string, mtime: number): void;
|
27 | }
|