Skip to main content
Module

x/ts_morph/mod.ts>printNode

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