carbon-addons-iot-react icon indicating copy to clipboard operation
carbon-addons-iot-react copied to clipboard

Where can I find @types for this carbon-addons-iot-react

Open hadnet opened this issue 4 years ago • 4 comments

I can't find types for this packages. Can anyone help me to find the @types for this project?

hadnet avatar Oct 23 '20 06:10 hadnet

Hi @hadnet - thanks for bringing this up. Unfortunately type definitions aren't provided for this package right now. This library is built atop Carbon, which doesn't use typescript and doesn't provide types either at the moment. I share the same concerns they do.

For now, it would simply be too costly for us to provide type definitions as we're primarily focused on core features and bugfixes. Is your product using Typescript? I'm very much interested to keep note of projects that would like this feature. I think we'd consider providing them if there is enough community interest/support and if Carbon were to provide type definitions for their base components. For those reasons I'll close this for now but please follow up with any questions and more info regarding your project, thanks!

tay1orjones avatar Oct 23 '20 16:10 tay1orjones

Oh, I got it. Yes, I'm using Carbon Design for a TS project. And I'm using these types definitions:

    "@types/carbon-components-react": "^7.10.12",
    "@types/carbon__colors": "^0.0.1",
    "@types/carbon__icons-react": "^10.19.0",

So I thought this package would provide definitions as well. TypeScript has been increasing in its popularity and its benefits for projects like CD are huge indeed. So I think it is worth keeping that in mind. Thanks

hadnet avatar Oct 23 '20 18:10 hadnet

Monitor is swapping to Typescript now so this would be definitely be a big helper. As noted above, base carbon does provide types and the cost shouldn't be that high considering we already use prop types. Its just a matter of making the types files from those prop types

sstone2423 avatar Jun 11 '21 15:06 sstone2423

Hi @hadnet - thanks for bringing this up. Unfortunately type definitions aren't provided for this package right now. This library is built atop Carbon, which doesn't use typescript and doesn't provide types either at the moment. I share the same concerns they do.

For now, it would simply be too costly for us to provide type definitions as we're primarily focused on core features and bugfixes. Is your product using Typescript? I'm very much interested to keep note of projects that would like this feature. I think we'd consider providing them if there is enough community interest/support and if Carbon were to provide type definitions for their base components. For those reasons I'll close this for now but please follow up with any questions and more info regarding your project, thanks!

Given the fact that the carbon team are now working on implementing types, are you going to follow suit?

Ivangrasp avatar Mar 23 '23 20:03 Ivangrasp