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
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;
?The text was updated successfully, but these errors were encountered: