Skip to main content
Module

x/docxml/src/classes/XmlComponent.ts>XmlComponentClassDefinition

An experimental Deno tool to transform XML to DOCX with a little XPath- and component based configuration
Go to Latest
interface XmlComponentClassDefinition
import { type XmlComponentClassDefinition } from "https://deno.land/x/docxml@1.5.0/src/classes/XmlComponent.ts";

The interface to which a class definition of an XML component must adhere -- ie. it must have a children and mixed static property.

Type Parameters

optional
C extends AnyXmlComponent | unknown = AnyXmlComponent

Properties

children: string[]
mixed: boolean

Methods

new(props: XmlComponentProps<C>, ...children: XmlComponentChild<C>[]): C
matchesNode(node: Node): boolean
fromNode(node: Node): C