carbon-addons-iot-react
carbon-addons-iot-react copied to clipboard
Where can I find @types for this carbon-addons-iot-react
I can't find types for this packages. Can anyone help me to find the @types for this project?
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!
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
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
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?