UNPKG

docx

Version:

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

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