Closed k290 closed 5 years ago
Thank you for the example.
Wha we could suggest is using the following format for the withPipValidation component.
const withPipValidation = <P extends Object>(Component: typeof React.Component) =>
If this is not possible in the application, please let us know and we will research further.
Thanks. I'll have a look next week and let you know if that works for us
Thanks! I tThink you meant const withPipValidation = <P extends Object>(Component: typeof React.ComponentType)
This does work for us as we still get the strong typing when using the wrapped component e.g.
Current behavior
Error "types of property 'propTypes are incompatible" when using Prop typings for a generic HOC
Expected behavior
Typings should be correct
Minimal reproduction of the problem with instructions
Observe that the affected components are: DateInput DatePicker TimePicker Combox DropdownList MultiSelect MaskedTextbox
While AutoComplete, NumericTextBox and Input are fine
This used to be working in Kendo React version 2.11
Package versions: "@progress/kendo-react-dateinputs": "3.2.2", "@progress/kendo-react-dropdowns": "3.2.2", "@progress/kendo-react-inputs": "3.2.2", "@progress/kendo-react-intl": "3.2.2", "@types/react": "16.9.2", "@types/react-dom": "16.8.5", "react": "16.8.6", "react-dom": "16.8.6"
System: