Used to create the program when need for program creation or recreation detected
Methods
Optional createHash
createHash(data: string): string
Parameters
data: string
Returns string
Optional directoryExists
directoryExists(path: string): boolean
If provided, used for module resolution as well as to handle directory structure
Parameters
path: string
Returns boolean
fileExists
fileExists(path: string): boolean
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
If provided, used to cache and handle directory structure modifications
Parameters
path: string
Optional extensions: readonly string[]
Optional exclude: readonly string[]
Optional include: readonly string[]
Optional depth: number
Returns string[]
readFile
readFile(path: string, encoding?: string): string
Use 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
Used to create the program when need for program creation or recreation detected