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) 512 B
import { Element } from 'xml-js'; import { IContext } from '../file/xml-components'; import { IPatch } from './from-docx'; type IReplacerResult = { readonly element: Element; readonly didFindOccurrence: boolean; }; export declare const replacer: ({ json, patch, patchText, context, keepOriginalStyles, }: { readonly json: Element; readonly patch: IPatch; readonly patchText: string; readonly context: IContext; readonly keepOriginalStyles?: boolean; }) => IReplacerResult; export {};