UNPKG

1.22 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8/// <amd-module name="@angular/compiler-cli/src/ngtsc/file_system/src/compiler_host" />
9import ts from 'typescript';
10import { FileSystem } from './types';
11export 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 realpath(path: string): string;
26}