Skip to main content
Module

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

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

Methods

Gets the JSX attribute's initializer or returns undefined if it doesn't exist.

Gets the JSX attribute's initializer or throws if it doesn't exist.

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

Gets the structure equivalent to this node.

remove(): void

Removes the JSX attribute.

Removes the initializer.

set(structure: Partial<JsxAttributeStructure>): this

Sets the node from a structure.

setInitializer(textOrWriterFunction: string | WriterFunction): this

Sets the initializer.