Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
interface ComponentDefinition
import { type ComponentDefinition } from "https://deno.land/x/docxml@5.3.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