docx
Version:
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
13 lines (12 loc) • 578 B
TypeScript
import { BaseXmlComponent, IContext } from "./base";
import { IXmlableObject } from "./xmlable-object";
export declare const EMPTY_OBJECT: {};
export declare abstract class XmlComponent extends BaseXmlComponent {
protected root: (BaseXmlComponent | string | any)[];
constructor(rootKey: string);
prepForXml(context: IContext): IXmlableObject | undefined;
addChildElement(child: XmlComponent | string): XmlComponent;
}
export declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
prepForXml(context: IContext): IXmlableObject | undefined;
}