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) • 439 B
TypeScript
import { BaseXmlComponent, IContext } from "./base";
import { IXmlableObject } from "./xmlable-object";
export declare type AttributeMap<T> = {
[P in keyof T]: string;
};
export declare abstract class XmlAttributeComponent<T> extends BaseXmlComponent {
protected root: T;
protected readonly xmlKeys?: AttributeMap<T>;
constructor(properties: T);
prepForXml(_: IContext): IXmlableObject;
set(properties: T): void;
}