html-to-pdfmake.d.ts
1 /** 2 * Type definitions for html-to-pdfmake 3 * Since html-to-pdfmake doesn't have official TypeScript types, 4 * we declare them here. 5 */ 6 7 declare module "html-to-pdfmake" { 8 interface HtmlToPdfmakeOptions { 9 window?: Window; 10 defaultStyles?: Record<string, any>; 11 tableAutoSize?: boolean; 12 imagesByReference?: boolean; 13 removeExtraBlanks?: boolean; 14 removeTagClasses?: boolean; 15 ignoreStyles?: string[]; 16 fontSizes?: number[]; 17 customTag?: (params: any) => any; 18 replaceText?: (text: string, nodes: any[]) => string; 19 } 20 21 function htmlToPdfmake(html: string, options?: HtmlToPdfmakeOptions): any; 22 23 export = htmlToPdfmake; 24 } 25