-
Notifications
You must be signed in to change notification settings - Fork 547
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
Add in TypeScript declaration file. #271
Comments
Unfortunately, the types package currently isn't up to date with the additions in Chroma.js 3.0.0. |
Came here looking for the same. The new tint and shade methods are missing types. |
The DefinitelyTyped's chroma.js type hint stays in version 2.4.4, which isn't compatible with current chroma.js. I believe the burden lies in front of the maintainers is Switch to ES modules, which basically requires an entire rewrite of the third-party type hint. I wish I could write a type hint file for current version, but I don't know what are the necessary parts of the chroma.js API is required in the type hint file. Hope anyone with experiences can help in this issue😉. |
Perhaps the project can add in a
.d.ts
file for better reference definition?The text was updated successfully, but these errors were encountered: