question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Help improving React-Date-Picker's typings

See original GitHub issue

Hey, 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:

obraz

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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
harry-smcommented, Dec 6, 2019

Made a PR #210 which will address this issue

0reactions
thornywebcommented, Apr 3, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found