Methods

M getCancellationToken() ts.CancellationToken

Returns: { ts.CancellationToken }

M getCanonicalFileName(fileName: string) string

Parameters:
Name Type
fileName string
Returns: { string }

M getCurrentDirectory() string

Returns: { string }

M getDefaultLibFilename(options: ts.CompilerOptions) string

Parameters:
Name Type
options ts.CompilerOptions
Returns: { string }

M getNewLine() string

Returns: { string }

M getSourceFile(filename: string, languageVersion: ts.ScriptTarget, onError: ts.CompilerHost.GetSourceFileOnErrorCallback) ts.SourceFile

Parameters:
Name Type Argument
filename string
languageVersion ts.ScriptTarget
onError ts.CompilerHost.GetSourceFileOnErrorCallback <optional>
Returns: { ts.SourceFile }

M useCaseSensitiveFileNames() boolean

Returns: { boolean }

M writeFile(filename: string, data: string, writeByteOrderMark: boolean, onError: ts.CompilerHost.WriteFileOnErrorCallback) void

Parameters:
Name Type Argument
filename string
data string
writeByteOrderMark boolean
onError ts.CompilerHost.WriteFileOnErrorCallback <optional>
Returns: { void }

Callbacks

GetSourceFileOnErrorCallback(message: string) void

Parameters:
Name Type
message string
Returns: { void }

WriteFileOnErrorCallback(message: string) void

Parameters:
Name Type
message string
Returns: { void }