Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_morph/common/mod.ts>CreateHostsOptions

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface CreateHostsOptions
import { type CreateHostsOptions } from "https://deno.land/x/ts_morph@16.0.0/common/mod.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.