mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
24 lines
1.1 KiB
TypeScript
24 lines
1.1 KiB
TypeScript
import * as tsTypes from "typescript";
|
|
export declare class LanguageServiceHost implements tsTypes.LanguageServiceHost {
|
|
private parsedConfig;
|
|
private cwd;
|
|
private snapshots;
|
|
private versions;
|
|
constructor(parsedConfig: tsTypes.ParsedCommandLine);
|
|
reset(): void;
|
|
setSnapshot(fileName: string, data: string): tsTypes.IScriptSnapshot;
|
|
getScriptSnapshot(fileName: string): tsTypes.IScriptSnapshot | undefined;
|
|
getCurrentDirectory(): string;
|
|
getScriptVersion(fileName: string): string;
|
|
getScriptFileNames(): string[];
|
|
getCompilationSettings(): tsTypes.CompilerOptions;
|
|
getDefaultLibFileName(opts: tsTypes.CompilerOptions): string;
|
|
useCaseSensitiveFileNames(): boolean;
|
|
readDirectory(path: string, extensions?: string[], exclude?: string[], include?: string[]): string[];
|
|
readFile(path: string, encoding?: string): string | undefined;
|
|
fileExists(path: string): boolean;
|
|
getTypeRootsVersion(): number;
|
|
directoryExists(directoryName: string): boolean;
|
|
getDirectories(directoryName: string): string[];
|
|
}
|