docx
Version:
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
14 lines (13 loc) • 463 B
TypeScript
import { IViewWrapper } from '../document-wrapper';
import { File } from '../file';
import { IXmlableObject } from './xmlable-object';
export type IContext = {
readonly file: File;
readonly viewWrapper: IViewWrapper;
readonly stack: IXmlableObject[];
};
export declare abstract class BaseXmlComponent {
protected readonly rootKey: string;
constructor(rootKey: string);
abstract prepForXml(context: IContext): IXmlableObject | undefined;
}