Merge pull request #34476 from FrankBrullo/jspdf

Added the optional parameter to the save function.
This commit is contained in:
Daniel Rosenwasser
2019-04-07 18:04:30 -07:00
committed by GitHub
+5 -3
View File
@@ -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