Property gantt.config.scales not available in angular

Hi,
I can’t manage with using property gantt.config.scales in angular app.

Looks like npm package for newest version of dhtmlx-gantt (6.3.1) contains old version of dhtmlxgantt.d.ts file.
I can see that downloaded file does not contain property scales for gantt.config type and at the top of file it’s commented by // Type definitions for dhtmlxGantt 6.1.0.

Did anyone forced this issue?

1 Like

Hello Krzysztof,
We are aware of the issue about missing types. The dev team will fix it in the future, but I cannot give you any ETA.

As a workaround, you can add the types manually or add the following string to allow all types for Gantt:

declare let gantt: any;

Thanks for your reply.

As i can see, this problem was recognized by your users few months ago. It’s really hard to believe that you will fix it in nearest future…
What’s more, it will be difficult to convice my team to buy DHTMLX Gantt pro component.
Without intellisense we will spend to much time on using your component :confused:

What’s worst! Trying to use ASP.NET instead of Angular produces same problem: i have no intellisense

Hello Krzysztof,
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.