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

Add in TypeScript declaration file. #271

Open
yy-zhong opened this issue May 29, 2021 · 4 comments
Open

Add in TypeScript declaration file. #271

yy-zhong opened this issue May 29, 2021 · 4 comments

Comments

@yy-zhong
Copy link

Perhaps the project can add in a .d.ts file for better reference definition?

@arminmon
Copy link

arminmon commented Aug 7, 2021

https://www.npmjs.com/package/@types/chroma-js

@haykam821
Copy link

Unfortunately, the types package currently isn't up to date with the additions in Chroma.js 3.0.0.

@simoami
Copy link

simoami commented Sep 30, 2024

Came here looking for the same. The new tint and shade methods are missing types.

@yy-zhong
Copy link
Author

yy-zhong commented Oct 8, 2024

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😉.

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

4 participants