UNPKG

ng-packagr

Version:

Compile and package Angular libraries in Angular Package Format (APF)

22 lines (21 loc) 825 B
import ts from 'typescript'; export interface CacheEntry { exists?: boolean; sourceFile?: ts.SourceFile; content?: string; declarationFileName?: string; angularDiagnostics?: ts.Diagnostic[]; } export declare class FileCache { private cache; forEach: (callbackfn: (value: CacheEntry, key: string, map: Map<string, CacheEntry>) => void, thisArg?: any) => void; clear: () => void; size(): number; normalizeKey(fileName: string): string; delete(fileName: string): boolean; has(fileName: string): boolean; get(fileName: string): CacheEntry | undefined; getOrCreate(fileName: string): CacheEntry; updateAngularDiagnostics(sourceFile: ts.SourceFile, diagnostics: ts.Diagnostic[]): void; getAngularDiagnostics(sourceFile: ts.SourceFile): ts.Diagnostic[] | undefined; }