Module

x/ts_morph/mod.ts>BodiedNode

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

Methods

getBody(): Node

Gets the body.

setBodyText(textOrWriterFunction: string | WriterFunction): this

Sets the body text.

getBodyText(): string

Gets the body text without leading whitespace, leading indentation, or trailing whitespace.

function BodiedNode
import { BodiedNode } from "https://dotland.deno.dev/x/ts_morph@18.0.0/mod.ts";

Type Parameters

T extends Constructor<BodiedNodeExtensionType>