mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
Added the optional parameter to the save function.
This commit is contained in:
5
types/jspdf/index.d.ts
vendored
5
types/jspdf/index.d.ts
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user