Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getWBSCode not declared on GanttStatict methods declaration. #7

Closed
duayres opened this issue Jan 31, 2018 · 2 comments
Closed

getWBSCode not declared on GanttStatict methods declaration. #7

duayres opened this issue Jan 31, 2018 · 2 comments

Comments

@duayres
Copy link

duayres commented Jan 31, 2018

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.

@AlexKlimenkov
Copy link
Contributor

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants