Skip to main content
Module

x/docxml/src/classes/Component.ts>ComponentDefinition

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

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

Type Parameters

optional
C extends AnyComponent | unknown = AnyComponent

Properties

children: string[]
mixed: boolean
[IS_COMPONENT]: true

Methods

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