-
Notifications
You must be signed in to change notification settings - Fork 832
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript mismatch #1070
Comments
Duplicate of #1025 |
@dmtrKovalenko I am getting the exact same error. |
@dmtrKovalenko I don't think this is a dupe of #1025. This issue persists on MUI v4.5.2 |
any update on this @dmtrKovalenko ? |
The problem is with your typescript or @types/react version |
Is the problem identical to mui/material-ui#18402? Does it help to stick to @material-ui/pickers v3.2.5? |
I am experiencing a very similar issue that has started occurring since upgrading to @material-ui/core 4.8.3. When starting the application I get the following TypeScript Eror: Currently using |
@oliviertassinari haha just discussed this issue |
@dmtrKovalenko is there any resolution / workaround? |
Environment
Steps to reproduce
1st issues
Expected behavior
this is whats been declared on /picker/index.d.ts
Actual behavior
Type '{ minDateMessage?: ReactNode; maxDateMessage?: ReactNode; invalidDateMessage?: ReactNode; inputValue?: string | undefined; onError?: ((error: ReactNode, value: any) => void) | undefined; ... 317 more ...; onChange: ((date: any, value?: string | ... 1 more ... | undefined) => void) & ((date: any) => void); }' is missing the following properties from type 'Pick<KeyboardDateInputProps, "id" | "is" | "onSubmit" | "error" | "children" | "ref" | "label" | "select" | "style" | "title" | "mask" | "color" | "hidden" | "dir" | "slot" | "name" | ... 263 more ... | "onAuxClickCapture">': ref, key, onAuxClick, onAuxClickCapturets(2739)
Note: this also happen to KeyboardTimePickerProps, and i found something weird that TimePickerProps has been produced but has never been used because in /pickers/index.d.ts, timePickerProps has used keyboardTimePickerProps instead.
2nd Issues
Expected behavior
it should not complain as its been decalred on /picker/index.d.ts
Actual behavior
Type '{ margin: "normal"; label: string; value: ParsableDate; onChange: ((date: any, value?: string | null | undefined) => void) & ((date: any) => void); }' is missing the following properties from type 'Pick<PureDateInputProps, "children" | "ref" | "label" | "select" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | ... 263 more ... | "onAuxClickCapture">': ref, key, onAuxClick, onAuxClickCapture
Note: why is it complaining PureDateInputProps ??
The text was updated successfully, but these errors were encountered: