attachEvent Expected 3 arguments, but got 2

I got this when using attachEvent :
Expected 3 arguments, but got 2.
In the file dhtmlxscheduler.d.ts there is :

/**
* attaches the handler to an inner event of dhtmlxScheduler
* @param name the event’s name, case-insensitive
* @param handler the handler function
* @param settings optional, an object with settings for the event handler
*/
attachEvent(name: SchedulerEventName, handler: SchedulerCallback, settings: any): string;

settings is not flagged optional ?

also missing :

ignore_timeline(date: Date): boolean;

filter_timeline(id: any, event: any): boolean;

Hello @David-TS ,

Regarding this part:

attachEvent(name: SchedulerEventName, handler: SchedulerCallback, settings: any): string;
settings is not flagged optional ?

Yeas, it looks like a mistake on our end, thank you for noticing it, we will fix it in future updates.

Regarding this one:

ignore_timeline(date: Date): boolean;

filter_timeline(id: any, event: any): boolean;

We can’t add them to the types from our side, because the name of the timeline is dynamic, the function looks so:

ignore_{viewName}

As we can’t create types for each possible name of timeline.

Kind regards,