Skip to main content
Deno 2 is finally here 🎉️
Learn more
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://deno.land/x/ts_morph@16.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