import { type BodyableNode } from "https://dotland.deno.dev/x/ts_morph@18.0.0/ts_morph.d.ts";
Methods
getBodyOrThrow(message?: string | (() => string)): Node
Gets the body or throws an error if it doesn't exist.
Gets the body text without leading whitespace, leading indentation, or trailing whitespace. Returns undefined if there is no body.
setBodyText(textOrWriterFunction: string | WriterFunction): this
Sets the body text. A body is required to do this operation.
import { BodyableNode } from "https://dotland.deno.dev/x/ts_morph@18.0.0/ts_morph.d.ts";
Type Parameters
T extends Constructor<BodyableNodeExtensionType>
Parameters
Base: T