Module

x/ts_morph/ts_morph.d.ts>printNode

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
function printNode
import { printNode } from "https://dotland.deno.dev/x/ts_morph@20.0.0/ts_morph.d.ts";

Prints the provided node using the compiler's printer.

Parameters

node: ts.Node
  • Compiler node.
optional
options: PrintNodeOptions
  • Options.

Returns

string

Prints the provided node using the compiler's printer.

Parameters

node: ts.Node
  • Compiler node.
sourceFile: ts.SourceFile
  • Compiler source file.
optional
options: PrintNodeOptions
  • Options.

Returns

string