UNPKG

docx

Version:

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

15 lines (11 loc) 365 B
import { Paragraph } from "./paragraph"; import { Table } from "./table"; export interface IHeaderOptions { readonly children: (Paragraph | Table)[]; } export class Header { constructor(public readonly options: IHeaderOptions = { children: [] }) {} } export class Footer { constructor(public readonly options: IHeaderOptions = { children: [] }) {} }