Help improving React-Date-Picker's typings
See original GitHub issueHey, community!
I’m trying to improve React-Date-Picker’s typings. I’m doing it on branch typings
. I think I’ve managed to do it, but I need a working sample project to test the changes.
I successfully installed /sample/parcel-ts
, but I’m getting a weird error:
I figured that it’s DatePickerProps interface extending CalendarProps which causes the issue. When I change
interface DatePickerProps extends CalendarProps {
to
interface DatePickerProps {
then the error is gone. But, obviously, now I’m missing typings from CalendarProps and I’m getting different kind of errors.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top Results From Across the Web
React custom datepicker: Step-by-step - LogRocket Blog
Set up a robust and attractive datepicker in React that acts as an alternative to the native HTML5 datepicker input element.
Read more >React-datepicker with custom input with manual typing
Anyone has idea how to use manual typing with custom input in react-datepicker with simple validation function?
Read more >@types/react-datepicker - npm
This package contains type definitions for react-datepicker (https://github.com/Hacker0x01/react-datepicker). Details. Files were exported from ...
Read more >Datepicker documentation for React | Mobiscroll
Name Type Default value
anchor HTMLElement undefined
animation String, Boolean undefined
buttons Array
Read more >Top 15 Free Best React Date Picker Components to use in 2022
1. Wojtekmaj / React Date Picker · 2. React day picker · 3. Material UI Date/Time Picker · 4. Carbon Design System DatePicker...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Made a PR #210 which will address this issue
I’ve opened #254 which will help with some typing issues as the main typing in index.d.ts extends CalendarProps but these aren’t included with the package until now.