Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_morph/ts_morph.d.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://deno.land/x/ts_morph@16.0.0/ts_morph.d.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://deno.land/x/ts_morph@16.0.0/ts_morph.d.ts";

Type Parameters

T extends Constructor<BodiedNodeExtensionType>