UNPKG

docx

Version:

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

10 lines (9 loc) 399 B
import { XmlComponent } from '../xml-components'; import { CharacterSet } from './font'; import { FontOptionsWithKey } from './font-wrapper'; export type FontOptions = { readonly name: string; readonly data: Buffer; readonly characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet]; }; export declare const createFontTable: (fonts: readonly FontOptionsWithKey[]) => XmlComponent;