mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
Merge pull request #34476 from FrankBrullo/jspdf
Added the optional parameter to the save function.
This commit is contained in:
Vendored
+5
-3
@@ -1,8 +1,9 @@
|
||||
// Type definitions for jsPDF 1.2
|
||||
// Type definitions for jsPDF 1.3
|
||||
// Project: https://github.com/MrRio/jsPDF
|
||||
// Definitions by: Amber Schühmacher <https://github.com/amberjs>
|
||||
// Kevin Gonnord <https://github.com/lleios>
|
||||
// Jackie Weng <https://github.com/jemerald>
|
||||
// Frank Brullo <https://github.com/frankbrullo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module 'jspdf' {
|
||||
@@ -76,7 +77,8 @@ declare module 'jspdf' {
|
||||
setLineCap(style:string|number):jsPDF;
|
||||
setLineJoin(style:string|number):jsPDF;
|
||||
output(type?:string, options?:any):any;
|
||||
save(filename:string):jsPDF;
|
||||
save(filename:string): void;
|
||||
save(filename:string, options: {returnPromise: boolean}): Promise<any>;
|
||||
|
||||
/**
|
||||
* jsPDF plugins below:
|
||||
@@ -184,7 +186,7 @@ declare module 'jspdf' {
|
||||
stroke():void;
|
||||
fill():void;
|
||||
translate(x:number, y:number):void;
|
||||
measureText(text:string):number;
|
||||
measureText(text:string):{ width: number };
|
||||
};
|
||||
|
||||
// jsPDF plugin: fromHTML
|
||||
|
||||
Reference in New Issue
Block a user