import { type BodyableNode } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";
Methods
getBodyOrThrow(message?: string | (() => string)): Node
Gets the body or throws an error if it doesn't exist.
getBody(): Node | undefined
Gets the body if it exists.
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://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";
Type Parameters
T extends Constructor<BodyableNodeExtensionType>
Parameters
Base: T