Make export config parameter optional (PDF, PNG)

According to the example in the documentation,
both `exportToPDF` and `exportToPNG` can be called without argument.

See:
https://docs.dhtmlx.com/gantt/api__gantt_exporttopdf.html
https://docs.dhtmlx.com/gantt/api__gantt_exporttopng.html
This commit is contained in:
mpsijm
2019-01-21 16:52:23 +01:00
committed by GitHub
parent ca809fa16f
commit 60a39291a5
+3 -3
View File
@@ -1455,13 +1455,13 @@ interface GanttStatic {
* exports a Gantt chart into the PDF format
* @param _export_ an object with export settings (see the details)
*/
exportToPDF(_export_: any): void;
exportToPDF(_export_?: any): void;
/**
* exports a Gantt chart into the PNG format
* @param _export_ an object with export settings (see the details)
*/
exportToPNG(_export_: any): void;
exportToPNG(_export_?: any): void;
/**
* returns all dependency loops in the chart
@@ -2242,4 +2242,4 @@ declare module "gantt" {
declare module "Gantt" {
export = Gantt;
}
}