Skip to main content
Module

x/deno2node/src/deps.deno.ts>JsxElement

Compile your Deno project to run on Node.js.
Go to Latest
class JsxElement
extends JsxElementBase<ts.JsxElement>
import { JsxElement } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Methods

Gets the closing element.

Gets the children of the JSX element.

Gets the opening element.

getParent(): NodeParentType<ts.JsxElement>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.JsxElement>>

Gets the structure equivalent to this node.

set(structure: Partial<JsxElementStructure>): this

Sets the node from a structure.

setBodyText(textOrWriterFunction: string | WriterFunction): this

Sets the body text.

setBodyTextInline(textOrWriterFunction: string | WriterFunction): this

Sets the body text without surrounding new lines.