import { JsxAttribute } from "https://deno.land/x/ts_morph@16.0.0/mod.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(): NonNullable<NodeParentType<ts.JsxAttribute>>
Gets the structure equivalent to this node.
remove(): void
Removes the JSX attribute.
removeInitializer(): this
Removes the initializer.
set(structure: Partial<JsxAttributeStructure>): this
Sets the node from a structure.
setInitializer(textOrWriterFunction: string | WriterFunction): this
Sets the initializer.