1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import ts from 'typescript';
|
10 | import { FileSystem } from './types';
|
11 | export declare class NgtscCompilerHost implements ts.CompilerHost {
|
12 | protected fs: FileSystem;
|
13 | protected options: ts.CompilerOptions;
|
14 | constructor(fs: FileSystem, options?: ts.CompilerOptions);
|
15 | getSourceFile(fileName: string, languageVersion: ts.ScriptTarget): ts.SourceFile | undefined;
|
16 | getDefaultLibFileName(options: ts.CompilerOptions): string;
|
17 | getDefaultLibLocation(): string;
|
18 | writeFile(fileName: string, data: string, writeByteOrderMark: boolean, onError: ((message: string) => void) | undefined, sourceFiles?: ReadonlyArray<ts.SourceFile>): void;
|
19 | getCurrentDirectory(): string;
|
20 | getCanonicalFileName(fileName: string): string;
|
21 | useCaseSensitiveFileNames(): boolean;
|
22 | getNewLine(): string;
|
23 | fileExists(fileName: string): boolean;
|
24 | readFile(fileName: string): string | undefined;
|
25 | }
|