Typescript Support
Zunaib opened this issue · 9 comments
Hi, Is there any typescript support.
In case i want to extend your lib's props ?
Hi,
there's none, but there are works to migrate typings to our sibling libraries like React-Date-Picker and React-Date-Picker. Once that's done I believe it should be fairly easy to add support for this one.
Currently, I've maneuvered my own definitions, i'll keep an eye for the work to be done.
Can i contribute my index.d.ts file ?
Made it with propTypes and Default Props.
Sure! Typings should be contributed to DefinitelyTyped though, not this repository :)
Have a look and if you feel like it, approve, this PR.
DefinitelyTyped/DefinitelyTyped#48743
Hi, I am trying to install the DefinitelyTyped package, but the name does not match the implementation package name. So typescript is not able to resolve the package.
types: @types/wojtekmaj__react-datetimerange-picker
implementation: @wojtekmaj/react-datetimerange-picker
Thx @Psvensso I didn't know about it
I probably need to tweak a bit my tsconfig :)
Closing as DefinitelyTyped/DefinitelyTyped#48743 is merged and published.