UNPKG

@ts-ast-parser/core

Version:

Reflects a simplified version of the TypeScript AST for generating documentation

26 lines 1.26 kB
import type { AnalyserSystem } from './analyser-system.js'; import ts from 'typescript'; /** * This is used by the TypeScript Program to interact * with the System Interface. */ export declare class CompilerHost implements ts.CompilerHost { private readonly _system; private readonly _options; private readonly _cwd; constructor(system: AnalyserSystem, options: ts.CompilerOptions); getSourceFile(fileName: string, options: ts.ScriptTarget | ts.CreateSourceFileOptions): ts.SourceFile; getDefaultLibFileName(options: ts.CompilerOptions): string; writeFile(fileName: string, text: string, writeByteOrderMark: boolean): void; getCurrentDirectory(): string; useCaseSensitiveFileNames(): boolean; getCanonicalFileName(fileName: string): string; getNewLine(): string; fileExists(fileName: string): boolean; readFile(fileName: string, encoding?: string): string; directoryExists(directoryName: string): boolean; getDirectories(filePath: string): string[]; readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): string[]; realpath(filePath: string): string; } //# sourceMappingURL=compiler-host.d.ts.map