-
-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
types: investigate type error with mode prop #1583
Labels
Type: Feature
New Feature
Milestone
Comments
gpbl
changed the title
Investigate mode type errors
types: investigate type error with mode prop
Jan 25, 2023
ongyuxing
added a commit
to ongyuxing/react-day-picker
that referenced
this issue
Mar 8, 2023
ongyuxing
added a commit
to ongyuxing/react-day-picker
that referenced
this issue
Mar 8, 2023
Merged
The prop types have been rewritten in the next major version: please check them out here http://react-day-picker.js.org/next |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So, after updating to 8.3.1 this issue appeared:
mode
andselectedDate
comes from props. Their types are defined as follows:(and
DatesType: Date | Date[] | DateRange | undefined
, whereDateRange
is imported from `react-day-picker)At this point I ran out of ideas how to resolve this issue. The only solution that worked, was something like this:
but to be hones it doesn't look too clean.
Maybe you would know what is the issue here and if there is a better way to resolve it than the one I showed above?
Thanks in advance 馃槂
Originally posted by @bartlomiej-bykowy in #1570 (comment)
The text was updated successfully, but these errors were encountered: