Typescript: Missing properties in @types/dhtmlxscheduler

Whats the simplest way to get these added to the types in TS? I’m using DHTML Scheduler Enterprise 5.3.3

TS2339: Property ‘header’ does not exist on type ‘SchedulerConfigOptions’.
TS2339: Property ‘getView’ does not exist on type ‘SchedulerStatic’.
TS2339: Property ‘render’ does not exist on type ‘SchedulerStatic’.

Hello @thisismatt,

We updated type definitions in the 5.3.8 version, so the easiest way is to update the scheduler to the latest version.

Or you can manually add properties in your type definitions file, here are them:

header:

/**
 * provides a layout-like configuration for the scheduler header (navigation panel)
*/
header: any;

getView:

/**
 * returns a view object by its name. If no name is specified, returns the current view
 * @param name optional, optional, the name of the view
*/
getView(name?: string): any;

render:

/**
 * repaints the scheduler
 * @param date optional, the date to display
 * @param view optional, the name of a view to display
*/
render(date?: Date, view?: string): void;