Skip to content

Commit 99cbee4

Browse files
malthoffUzlopak
andauthored
Fix: Add Promise as return type to save method (#3272)
Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
1 parent 30880b4 commit 99cbee4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,8 @@ declare module "jspdf" {
844844
ry: number,
845845
style?: string | null
846846
): jsPDF;
847-
save(filename?: string, options?: { returnPromise?: boolean }): jsPDF;
847+
save(filename: string, options: { returnPromise: true }): Promise<void>;
848+
save(filename?: string): jsPDF;
848849
saveGraphicsState(): jsPDF;
849850
setCharSpace(charSpace: number): jsPDF;
850851
setCreationDate(date?: Date | string): jsPDF;

0 commit comments

Comments
 (0)