Added the optional parameter to the save function.

This commit is contained in:
Frank Brullo
2019-04-04 14:20:51 -04:00
parent 0ac2719531
commit d7aceb16cd

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,7 @@ 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, options?: {returnPromise: boolean}): Promise<any>;
/**
* jsPDF plugins below: