Zooming Extension not working in Angular

Like shown it in the demo in Gantt home page. I have added zoom in/out and Zoom rest buttons.

But when I try to enable the Zooming extension am getting following error

Property ‘$root’ does not exist on type ‘GanttStatic’.

Am using Angular 9 and Gantt 7.1.5 versions.

Can some one please help me to resolve this issue.

Hello Kiran,
Thank you for letting us know about that issue. We are aware that there are missing types. I added the $root name to the list in our internal bug tracker. The dev team will fix it in the future, but I cannot give you any ETA.

As a workaround, you can manually add the following rule to the dhtmlxgantt.d.ts file:

$root: any;

Here is the updated file:
https://files.dhtmlx.com/30d/87bf4ad23d7b4d19c7fa17336e9ab25c/dhtmlxgantt.d.ts

Or you can allow all types for the Gantt object.

Hello Kiran,
I would like to inform you that the dev team added more types in the 8.0 version:
https://docs.dhtmlx.com/gantt/whatsnew.html#x6629x80x6630x:~:text=Updated%20TypeScript%20type%20definitions
https://docs.dhtmlx.com/gantt/whatsnew.html#x6629x80x6630x:~:text=Type%20definitions%20are%20updated

Now there are types for the tasks, links, grid columns, scales, extensions, and almost everything in the others category:
https://docs.dhtmlx.com/gantt/desktop__task_properties.html
https://docs.dhtmlx.com/gantt/desktop__link_properties.html
https://docs.dhtmlx.com/gantt/api__gantt_columns_config.html
https://docs.dhtmlx.com/gantt/api__gantt_scales_config.html
https://docs.dhtmlx.com/gantt/api__gantt_ext_other.html
https://docs.dhtmlx.com/gantt/api__refs__gantt_others.html

You can update to the latest version to get more features and improvements, including the better Typescript Support.

However, even if you are using the older version and don’t have plans to upgrade, you can still use the updated version of the dhtmlxgantt.d.ts file as the Gantt API is mostly the same:

There are still ways to improve, so in the future versions, the dev team will add more types for Gantt.