I am currently using the TypeScript types from the Datetime component and noticed when I try to access the state.currentView I get this TS error Argument of type '{ currentView: string; }' is not assignable to parameter of type 'DatetimepickerState | ((prevState: Readonly<DatetimepickerState>, props: Readonly<DatetimepickerProps>) => DatetimepickerState | ... 1 more ... | null) | Pick<...> | null'.
I'm Submitting a ...
I am currently using the TypeScript types from the Datetime component and noticed when I try to access the state.currentView I get this TS error
Argument of type '{ currentView: string; }' is not assignable to parameter of type 'DatetimepickerState | ((prevState: Readonly<DatetimepickerState>, props: Readonly<DatetimepickerProps>) => DatetimepickerState | ... 1 more ... | null) | Pick<...> | null'.
Looking at the code looks like you have
And in DateTime.d.ts you have
Shouldn't
DatetimepickerState
includecurrentView: ViewMode
in the interface and it seems like you can removeupdateOn: string;
?