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
TS is yelling at me for excluding some muiFieldProps in my SQFormDatePickerWithDateFNS. Is it possible to update the type for muiFieldProps to allow partial props?
TS error TLDR (I think): you need onChange, value, and renderInput in muiFieldProps!
Full TS error:
Type '{ onAccept: ((value: Date | null) => void) | undefined; minDate: Date | undefined; maxDate: Date | undefined; }' is not assignable to type 'MuiFieldProps<Date>'.
Type '{ onAccept: ((value: Date | null) => void) | undefined; minDate: Date | undefined; maxDate: Date | undefined; }' is missing the following properties from type 'BaseDatePickerProps<Date, Date>': onChange, value, renderInputts(2322)
SQFormDatePickerWithDateFNS.d.ts(8, 5): The expected type comes from property 'muiFieldProps' which is declared here on type 'IntrinsicAttributes & Omit<SQFormDatePickerProps, "onChange" | "muiFieldProps"> & { onChange?: ((date: Date | null) => void) | undefined; muiFieldProps?: MuiFieldProps<Date> | undefined; }'
The text was updated successfully, but these errors were encountered:
TS is yelling at me for excluding some muiFieldProps in my SQFormDatePickerWithDateFNS. Is it possible to update the type for muiFieldProps to allow partial props?
My usage:
TS error TLDR (I think): you need onChange, value, and renderInput in muiFieldProps!
Full TS error:
The text was updated successfully, but these errors were encountered: