We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Typescript states there is an error if I Omit 'onChange' | 'selectsRange' | 'selectsMultiple'
Property selectsMultiple is missing in type .... but requried in type ...
Error from version 7.5.0
To Reproduce Steps to reproduce the behavior:
import React from 'react'; import DatePicker, { DatePickerProps } from 'react-datepicker'; export interface WrapperProps { elementProps: Omit< DatePickerProps, 'onChange' | 'selectsRange' | 'selectsMultiple' >; } export const DatePickerWrapper: React.FC<WrapperProps> = ({ ...props }) => { const { elementProps } = props; return <DatePicker {...elementProps} />; };
Expected behavior Works in 7.4.0
The text was updated successfully, but these errors were encountered:
Just upgraded to 7.5.0 and I'm seeing this too with very similar code. Don't understand why, the types don't seem to have changed.
Sorry, something went wrong.
I experience it in 7.3.0 as well (with corresponding @types at 6.2.0)
No branches or pull requests
Describe the bug
Typescript states there is an error if I Omit 'onChange' | 'selectsRange' | 'selectsMultiple'
Property selectsMultiple is missing in type .... but requried in type ...
Error from version 7.5.0
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Works in 7.4.0
The text was updated successfully, but these errors were encountered: