1 | import * as ts from 'typescript';
|
2 | export interface CacheEntry {
|
3 | exists?: boolean;
|
4 | sourceFile?: ts.SourceFile;
|
5 | content?: string;
|
6 | declarationFileName?: string;
|
7 | angularDiagnostics?: ts.Diagnostic[];
|
8 | }
|
9 | export declare class FileCache {
|
10 | private cache;
|
11 | forEach: (callbackfn: (value: CacheEntry, key: string, map: Map<string, CacheEntry>) => void, thisArg?: any) => void;
|
12 | clear: () => void;
|
13 | size(): number;
|
14 | normalizeKey(fileName: string): string;
|
15 | delete(fileName: string): boolean;
|
16 | has(fileName: string): boolean;
|
17 | get(fileName: string): CacheEntry | undefined;
|
18 | getOrCreate(fileName: string): CacheEntry;
|
19 | updateAngularDiagnostics(sourceFile: ts.SourceFile, diagnostics: ts.Diagnostic[]): void;
|
20 | getAngularDiagnostics(sourceFile: ts.SourceFile): ts.Diagnostic[] | undefined;
|
21 | }
|