-
Notifications
You must be signed in to change notification settings - Fork 71
/
host.d.ts
35 lines (35 loc) · 1.66 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
24
25
26
27
28
29
30
31
32
33
34
35
import * as tsTypes from "typescript";
import { TransformerFactoryCreator } from "./ioptions";
export declare class LanguageServiceHost implements tsTypes.LanguageServiceHost {
private parsedConfig;
private transformers;
private cwd;
private snapshots;
private versions;
private service?;
private fileNames;
constructor(parsedConfig: tsTypes.ParsedCommandLine, transformers: TransformerFactoryCreator[], cwd: string);
reset(): void;
setLanguageService(service: tsTypes.LanguageService): void;
setSnapshot(fileName: string, source: string): tsTypes.IScriptSnapshot;
getScriptSnapshot(fileName: string): tsTypes.IScriptSnapshot | undefined;
getScriptFileNames: () => string[];
getScriptVersion(fileName: string): string;
getCustomTransformers(): tsTypes.CustomTransformers | undefined;
getCompilationSettings: () => tsTypes.CompilerOptions;
getTypeRootsVersion: () => number;
getCurrentDirectory: () => string;
useCaseSensitiveFileNames: () => boolean;
getDefaultLibFileName: typeof tsTypes.getDefaultLibFilePath;
readDirectory: (path: string, extensions?: readonly string[] | undefined, exclude?: readonly string[] | undefined, include?: readonly string[] | undefined, depth?: number | undefined) => string[];
readFile: (path: string, encoding?: string | undefined) => string | undefined;
fileExists: (path: string) => boolean;
directoryExists: (path: string) => boolean;
getDirectories: (path: string) => string[];
realpath: (path: string) => string;
trace: {
(...data: any[]): void;
(message?: any, ...optionalParams: any[]): void;
};
}
//# sourceMappingURL=host.d.ts.map