From 60a39291a567b2bf7717fbba0766bb7f9d6db96a Mon Sep 17 00:00:00 2001 From: mpsijm Date: Mon, 21 Jan 2019 16:52:23 +0100 Subject: [PATCH] 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 --- types/dhtmlxgantt/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/dhtmlxgantt/index.d.ts b/types/dhtmlxgantt/index.d.ts index f2e322b0e3..5502cdcaf2 100644 --- a/types/dhtmlxgantt/index.d.ts +++ b/types/dhtmlxgantt/index.d.ts @@ -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; -} \ No newline at end of file +}