angular-gantt-demo icon indicating copy to clipboard operation
angular-gantt-demo copied to clipboard

getWBSCode not declared on GanttStatict methods declaration.

Open duayres opened this issue 8 years ago • 2 comments

The following (available on vanilla) method: getWBSCode(id: string|number): string; is not present on GanttStatic methods declaration in index.d.ts on the node_modules/@types definition (vendor) package.

I have no ideia on how to contribute, nor to compile my node_modules to use this.

duayres avatar Jan 31 '18 14:01 duayres

Hi, the type definitions of dhtmlxgantt at definitelyTyped are a bit outdated now and don't have the latest api. We'll send them a PR with an update in a day or two. As a temporary solution you can remove @types/dhtmlxgantt import from your code and declare gantt instance manually: declare let gantt: any; it'll disable code auto-completion, as well as compile-time arguments checks, but you'll be able to use all methods available in js gantt object.

AlexKlimenkov avatar Feb 07 '18 18:02 AlexKlimenkov

We're now finally able to generate type definitions somewhat automatically and I've updated them to the latest gantt 6.0 api https://www.npmjs.com/package/@types/dhtmlxgantt So everything should be good now and we'll try to keep type definitions up to date from now on.

AlexKlimenkov avatar Dec 05 '18 07:12 AlexKlimenkov