docuflow / src /html2pdf.d.ts
Joedroid's picture
fix: replace window.print() with html2pdf.js for direct PDF export
27e7d1a
Raw
History Blame Contribute Delete
522 Bytes
declare module "html2pdf.js" {
interface Html2PdfOptions {
margin?: number | number[];
filename?: string;
image?: { type?: string; quality?: number };
html2canvas?: Record<string, any>;
jsPDF?: { unit?: string; format?: string; orientation?: string };
}
interface Html2PdfInstance {
set(options: Html2PdfOptions): Html2PdfInstance;
from(element: HTMLElement | string): Html2PdfInstance;
save(): Promise<void>;
}
function html2pdf(): Html2PdfInstance;
export default html2pdf;
}