UNPKG

docxtemplater

Version:

Generate docx, pptx, and xlsx from templates (Word, Powerpoint and Excel documents), from Node.js, the Browser and the command line

27 lines (22 loc) 766 B
import { DXT } from "./js/docxtemplater"; interface ParserOptions { filters?: { [x: string]: (input: any, ...filters: any[]) => any }; csp?: boolean; cache?: any; literals?: { [x: string]: any }; postEvaluate?: (result: any, tag: string, scope: any) => any; isIdentifierStart?: (char: string) => boolean; isIdentifierContinue?: (char: string) => boolean; } interface ExpressionParser extends DXT.Parser { compiled: any; getIdentifiers(): string[]; getObjectIdentifiers(): any; } type Parser = { (tag: string): ExpressionParser; filters: { [x: string]: (input: any, ...filters: any[]) => any }; configure: (options: ParserOptions) => (tag: string) => DXT.Parser; }; declare var expressionParser: Parser; export default expressionParser;