CreateSourceFileOptions

sealed external interface CreateSourceFileOptions(source)

Properties

Link copied to clipboard

Controls the format the file is detected as - this can be derived from only the path and files on disk, but needs to be done with a module resolution cache in scope to be performant. This is usually undefined for compilations that do not have moduleResolution values of node16 or nodenext.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var setExternalModuleIndicator: (file: SourceFile) -> Unit?

Controls how module-y-ness is set for the given file. Usually the result of calling getSetExternalModuleIndicator on a valid CompilerOptions object. If not present, the default check specified by isFileProbablyExternalModule will be used to set the field.