applying transfer to react app

This commit is contained in:
Tyler Koenig
2021-09-20 16:54:47 -04:00
parent 8819f31dd0
commit c612b7d702
37373 changed files with 3775588 additions and 2871 deletions
+25
View File
@@ -0,0 +1,25 @@
import * as ts from 'typescript';
import { LintReport } from './types/eslint';
export interface DataShape {
source?: ts.SourceFile;
linted: boolean;
eslints: 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;
}