-
Notifications
You must be signed in to change notification settings - Fork 130
/
Copy pathhost.d.ts
23 lines (23 loc) · 1.19 KB
/
host.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import * as ts from 'typescript';
import { FileCache } from './input';
export declare class Host implements ts.CompilerHost {
typescript: typeof ts;
fallback: ts.CompilerHost;
currentDirectory: string;
input: FileCache;
constructor(typescript: typeof ts, currentDirectory: string, input: FileCache, options: ts.CompilerOptions);
getNewLine(): string;
useCaseSensitiveFileNames(): boolean;
getCurrentDirectory: () => string;
getCanonicalFileName(filename: string): string;
getDefaultLibFileName(options: ts.CompilerOptions): string;
getDefaultLibLocation(): string;
writeFile: (fileName: string, data: string, writeByteOrderMark: boolean, onError?: (message: string) => void) => void;
fileExists: (fileName: string) => boolean;
readFile: (fileName: string) => string;
getSourceFile: (fileName: string, languageVersion: ts.ScriptTarget, onError?: (message: string) => void) => ts.SourceFile;
realpath: (path: string) => string;
getDirectories: (path: string) => string[];
directoryExists: (path: string) => boolean;
readDirectory: (rootDir: string, extensions: string[], excludes: string[], includes: string[], depth?: number) => string[];
}