[ts]
Argument of type '(context: ActionContext<BasketState, RootState>) => Promise<void>' is not assignable to parameter of type 'ActionHandler<BasketState, RootState, {}, void>'.
Types of parameters 'context' and 'context' are incompatible.
Type 'BareActionContext<BasketState, RootState>' is not assignable to type 'ActionContext<BasketState, RootState>'.
Property 'dispatch' is missing in type 'BareActionContext<BasketState, RootState>'.
const restoreSavedBasket: (context: ActionContext<BasketState, RootState>) => Promise<void>
Figured it out: looks like in all examples context: ActionContext<BasketState, RootState> should be changed to context: BareActionContext<BasketState, RootState>
I get an error from the sample code:
dispatchRestoreSavedBasket: moduleBuilder.dispatch(restoreSavedBasket)
gives: