Module

x/ts_morph/mod.ts>PrintNodeOptions

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface PrintNodeOptions
import { type PrintNodeOptions } from "https://dotland.deno.dev/x/ts_morph@18.0.0/mod.ts";

Options for printing a node.

Properties

optional
removeComments: boolean

Whether to remove comments or not.

optional
newLineKind: NewLineKind

New line kind.

Defaults to line feed.

optional
emitHint: EmitHint

From the compiler api: "A value indicating the purpose of a node. This is primarily used to distinguish between an Identifier used in an expression position, versus an Identifier used as an IdentifierName as part of a declaration. For most nodes you should just pass Unspecified."

Defaults to Unspecified.

optional
scriptKind: ScriptKind

The script kind.