1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import { PluginCompilerHost } from '@bazel/typescript/internal/tsc_wrapped/plugin_api';
|
10 | import * as ts from 'typescript';
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | export declare class SyntheticFilesCompilerHost implements PluginCompilerHost {
|
23 | private rootFiles;
|
24 | private delegate;
|
25 | |
26 |
|
27 |
|
28 | syntheticFiles: Map<string, ts.SourceFile>;
|
29 | constructor(rootFiles: string[], delegate: ts.CompilerHost, generatedFiles: (rootFiles: string[]) => {
|
30 | [fileName: string]: (host: ts.CompilerHost) => ts.SourceFile | undefined;
|
31 | });
|
32 | fileExists(filePath: string): boolean;
|
33 | /** Loads a source file from in-memory map, or delegates. */
|
34 | getSourceFile(fileName: string, languageVersion: ts.ScriptTarget, onError?: (message: string) => void): ts.SourceFile | undefined;
|
35 | readonly inputFiles: string[];
|
36 | fileNameToModuleId(fileName: string): string;
|
37 | getDefaultLibFileName(options: ts.CompilerOptions): string;
|
38 | writeFile(fileName: string, content: string, writeByteOrderMark: boolean, onError: ((message: string) => void) | undefined, sourceFiles: ReadonlyArray<ts.SourceFile> | undefined): void;
|
39 | getCanonicalFileName(path: string): string;
|
40 | getCurrentDirectory(): string;
|
41 | useCaseSensitiveFileNames(): boolean;
|
42 | getNewLine(): string;
|
43 | getDirectories?: (path: string) => string[];
|
44 | readFile(fileName: string): string | undefined;
|
45 | trace(s: string): void;
|
46 | }
|