MyStore is not required.
export const Logger: Middleware =
(api: MiddlewareAPI<void>) =>
(next: Dispatch<void>) =>
<A extends Action>(action: A) => {
// Do stuff
return next(action);
};
or
export const Logger: Middleware = api => next => action => {
// Do stuff
return next(action);
};
Have a Nice Dev