UNPKG

docx

Version:

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

6 lines (5 loc) 347 B
import { Element } from "xml-js"; import { IContext } from '../file/xml-components'; import { IPatch } from "./from-docx"; import { IRenderedParagraphNode } from "./run-renderer"; export declare const replacer: (json: Element, patch: IPatch, patchText: string, renderedParagraphs: readonly IRenderedParagraphNode[], context: IContext) => Element;