Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CompilerHost

Hierarchy

Index

Properties

writeFile

Methods

Optional createHash

  • createHash(data: string): string

Optional directoryExists

  • directoryExists(directoryName: string): boolean

fileExists

  • fileExists(fileName: string): boolean

Optional getCancellationToken

getCanonicalFileName

  • getCanonicalFileName(fileName: string): string

getCurrentDirectory

  • getCurrentDirectory(): string

getDefaultLibFileName

Optional getDefaultLibLocation

  • getDefaultLibLocation(): string

Optional getDirectories

  • getDirectories(path: string): string[]

Optional getEnvironmentVariable

  • getEnvironmentVariable(name: string): string

getNewLine

  • getNewLine(): string

Optional getParsedCommandLine

getSourceFile

  • getSourceFile(fileName: string, languageVersion: ScriptTarget, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile
  • Parameters

    • fileName: string
    • languageVersion: ScriptTarget
    • Optional onError: (message: string) => void
        • (message: string): void
        • Parameters

          • message: string

          Returns void

    • Optional shouldCreateNewSourceFile: boolean

    Returns SourceFile

Optional getSourceFileByPath

  • getSourceFileByPath(fileName: string, path: Path, languageVersion: ScriptTarget, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile
  • Parameters

    • fileName: string
    • path: Path
    • languageVersion: ScriptTarget
    • Optional onError: (message: string) => void
        • (message: string): void
        • Parameters

          • message: string

          Returns void

    • Optional shouldCreateNewSourceFile: boolean

    Returns SourceFile

Optional readDirectory

  • readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[], includes: readonly string[], depth?: number): string[]
  • Parameters

    • rootDir: string
    • extensions: readonly string[]
    • excludes: readonly string[]
    • includes: readonly string[]
    • Optional depth: number

    Returns string[]

readFile

  • readFile(fileName: string): string

Optional realpath

  • realpath(path: string): string

Optional resolveModuleNames

Optional resolveTypeReferenceDirectives

Optional trace

  • trace(s: string): void

useCaseSensitiveFileNames

  • useCaseSensitiveFileNames(): boolean

Generated using TypeDoc