Module

x/ts_morph/common/ts_morph_common.d.ts>CreateHostsOptions

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Go to Latest
interface CreateHostsOptions
import { type CreateHostsOptions } from "https://dotland.deno.dev/x/ts_morph@21.0.0/common/ts_morph_common.d.ts";

Options for creating the hosts.

Properties

transactionalFileSystem: TransactionalFileSystem

The transactional file system to use.

sourceFileContainer: TsSourceFileContainer

Container of source files to use.

compilerOptions: CompilerOptionsContainer

Compiler options container to use.

getNewLine: () => "\r\n" | "\n"

Newline kind to use.

resolutionHost: ResolutionHost

The resolution host used for resolving modules and type reference directives.

optional
getProjectVersion: () => string

Provides the current project version to be used to tell if source files have changed. Provide this for a performance improvement.

optional
isKnownTypesPackageName: ts.LanguageServiceHost["isKnownTypesPackageName"]
optional
skipLoadingLibFiles: boolean

Set this to true to not load the typescript lib files.

optional
libFolderPath: string

Specify this to use a custom folder to load the lib files from.