UNPKG

docx

Version:

Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

16 lines (15 loc) 620 B
import { XmlComponent } from '../xml-components'; import { ConcreteHyperlink, Paragraph } from '../paragraph'; import { Table } from '../table'; import { TableOfContents } from '../table-of-contents'; import { Body } from './body'; import { IDocumentBackgroundOptions } from './document-background'; export type IDocumentOptions = { readonly background?: IDocumentBackgroundOptions; }; export declare class Document extends XmlComponent { private readonly body; constructor(options: IDocumentOptions); add(item: Paragraph | Table | TableOfContents | ConcreteHyperlink): Document; get Body(): Body; }