docxml
Version:
TypeScript (component) library for building and parsing a DOCX file
31 lines (30 loc) • 1.07 kB
TypeScript
import { type ComponentAncestor, Component } from '../classes/Component.js';
/**
* A type describing the components accepted as children of {@link FieldRangeSeparator}.
*/
export declare type FieldRangeSeparatorChild = never;
/**
* A type describing the props accepted by {@link FieldRangeSeparator}.
*/
export declare type FieldRangeSeparatorProps = {
[key: string]: never;
};
/**
* The separator between the instruction of a compex field, and the last computed value.
*/
export declare class FieldRangeSeparator extends Component<FieldRangeSeparatorProps, FieldRangeSeparatorChild> {
static readonly children: string[];
static readonly mixed: boolean;
/**
* Creates an XML DOM node for this component instance.
*/
toNode(_ancestry: ComponentAncestor[]): Node;
/**
* Asserts whether or not a given XML node correlates with this component.
*/
static matchesNode(node: Node): boolean;
/**
* Instantiate this component from the XML in an existing DOCX file.
*/
static fromNode(): FieldRangeSeparator;
}