Qix-/color

Need help to update the @types/color definitions #240

Sharcoux posted onGitHub

<!-- DO NOT OPEN ISSUES ABOUT SYNTAX ERRORS. -->

<!-- If you are here to open an issue about the nu_mer_ic sep_ar_a_tor, DON'T. -->

<!-- Read this instead: https://github.com/Qix-/color/issues/204#issuecomment-889974105 -->

<!-- No, you are not an exception. Your issue will be locked and closed without comment. -->

<!-- Apologies for the annoyed tone. -->

I am trying to update the typescript definitions here that are quite old. I'd like to add the new hexa function from 4.2.0 for instance.

To do so, I need to know what has been added since v3.0. I couldn't find a changelog.

The only thing I know is that there is now a: hexa function that returns #rrggbbaa result, right? Anything else?


Yeah Github hides this feature pretty well unfortunately. Here's the diff link: https://github.com/Qix-/color/compare/3.0.0..4.2.0

Anyway, yes .hexa() appears to be the only change to the API that woul need updating :)

posted by Qix- about 3 years ago

Perfect, thanks. By the way, if you don't want to use typescript, you might want to consider using JSDoc to benefits from type checking and improve documentation of your lib without transpiling. Check this

posted by Sharcoux about 3 years ago

Whenever I get around to figuring out the API going forward (it's been a long standing issue how to effectively and cleanly add features to this library...) I'll probably include typescript definitions directly in the project :)

Thanks for the issue, glad someone is looking at these :)

posted by Qix- about 3 years ago
posted by Sharcoux about 3 years ago

Fund this Issue

$0.00
Funded

Pull requests