You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After upgrading from 6.9 to 7.5, I am unable to extend the original datepicker component into a new component, using the original datepicker-props interface extended with new props. The following error message is displayed:
Understanding that the props are not defined using an interface anymore, but rather a type. I extended the props as a type instead, yielding the following error message:
As well as the current errors / warnings when trying to access the props:
This error is probably ignoreable, but I'm not entirely sure of the ramifications of doing so.
There's possibly a super smooth way of doing this that I'm not seeing, so I figured I'd ask here.
Expected behavior
It should be possible to extend or derive the original props to extend react-datepicker to own components without errors or warnings.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Windows 11
Browser: Chrome
Version [e.g. 7.5]
The text was updated successfully, but these errors were encountered:
Describe the bug
After upgrading from 6.9 to 7.5, I am unable to extend the original datepicker component into a new component, using the original datepicker-props interface extended with new props. The following error message is displayed:
Understanding that the props are not defined using an interface anymore, but rather a type. I extended the props as a type instead, yielding the following error message:
As well as the current errors / warnings when trying to access the props:
This error is probably ignoreable, but I'm not entirely sure of the ramifications of doing so.
There's possibly a super smooth way of doing this that I'm not seeing, so I figured I'd ask here.
Expected behavior
It should be possible to extend or derive the original props to extend react-datepicker to own components without errors or warnings.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: