import { JsxElement } from "https://deno.land/x/ts_morph@16.0.0/mod.ts";
Methods
Gets the closing element.
getJsxChildren(): JsxChild[]
Gets the children of the JSX element.
Gets the opening element.
getParent(): NodeParentType<ts.JsxElement>
getParentOrThrow(): 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.