parameters for updateView must be optional (#15457)

the function updateView can be called without parameters according to docs:
https://docs.dhtmlx.com/scheduler/api__scheduler_updateview.html
This commit is contained in:
Denys Krasnoshchok
2017-04-17 17:00:21 +02:00
committed by Andy
parent c305aeaf6e
commit 485b8cf1ea

View File

@@ -1769,12 +1769,13 @@ interface SchedulerStatic {
/**
* displays the specified view and date (doesn't invoke any events)
* the function will just refresh the current view if invoked without parameters.
* @param date the date to set
* @param view the view name
*/
updateView(date: Date, view: string): void;
updateView(date?: Date, view?: string): void;
}
declare var scheduler: SchedulerStatic;
declare var Scheduler: SchedulerEnterprise;
declare var Scheduler: SchedulerEnterprise;