rimble-ui
rimble-ui copied to clipboard
Typescript definitions
Typescript is a common tool to help make javascript code typesafe. Typescripts ability to do this improves the better the type definitions of the libraries it uses are.
TypeScript definitions for rimble-ui would be helpful for any project using typescript. :)
Hey @JasoonS, we just released a patch version of rimble-ui (0.9.2) that includes proptype definitions for all our components. Does this resolve your issue around type safety or do you want a typescript-specific implementation?
Hi @MikeLockz I don't think the proptype definitions are interoperable with typescript. But they are definitely better than nothing.
Typescript type definitions are definitely not a deal breaker for a UI library in my opinion, but they are an enhancement.
Thanks for the great work :)
Thanks @JasoonS. We're looking at this as a future enhancement.
Acceptance criteria:
- should have a branch that implements typescript definitions
- should have pros/cons for switching
- should have impact on documentation prop generation tables
E: 2D
any updates on this?
Hey @tpae we have TS definitions that will get released in the next week.
Just BTW, I've stopped using typescript and do everything with reasonML/reason-react now (much better than typescript in my opinion).
Anyway, you can see my rimble ui bindings here: https://github.com/wildcards-world/ui/blob/master/src/wrappedLibs/rimble-ui/Rimble.re , they are incomplete, and just what I'm using; but it's easy to extend
@MikeLockz are the type definitions complete?
yarn add @types/rimble-ui
fails. Is there another way to get them?
Came here to ask this, would love a @types/rimble-ui
😄
+1 for type definitions with Rimble