Used to create the program when need for program creation or recreation detected
OptionalgetOptionaljsOptionalafterOptionalclearIf provided, will be used to reset existing delayed compilation
OptionalcreateOptionalcreateOptionaldirectoryIf provided, used for module resolution as well as to handle directory structure
Use to check file presence for source files and if resolveModuleNames is not provided (complier is in charge of module resolution) then module files as well
OptionalgetOptionalgetIf provided, used in resolutions as well as handling directory structure
OptionalgetIf provided is used to get the environment variable
OptionalgetReturns the module resolution cache used by a provided resolveModuleNames implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it
OptionalgetOptionalhasOptionalonIf provided, called with Diagnostic message that informs about change in watch status
OptionalerrorCount: numberOptionalreadIf provided, used to cache and handle directory structure modifications
Optionalextensions: readonly string[]Optionalexclude: readonly string[]Optionalinclude: readonly string[]Optionaldepth: numberUse to read file text for source files and if resolveModuleNames is not provided (complier is in charge of module resolution) then module files as well
Optionalencoding: stringOptionalrealpathSymbol links resolution
OptionalresolveOptionalresolveOptionalcontainingSourceFile: tsc.SourceFileOptionalresolveOptionalresolveOptionalcontainingFileMode: ResolutionModeOptionalsetIf provided, will be used to set delayed compilation, so that multiple changes in short span are compiled together
OptionaltraceIf provided would be used to write log about compilation
Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added
Optionalrecursive: booleanOptionaloptions: tsc.WatchOptionsUsed to watch changes in source files, missing files needed to update the program or config file
OptionalpollingInterval: numberOptionaloptions: tsc.WatchOptionsOptionalwriteShould provide create directory and writeFile if done of invalidatedProjects is not invoked with writeFileCallback
OptionalwriteByteOrderMark: boolean
Host that has watch functionality used in --watch mode