Redux Middleware Factory Helper to generate Redux's middlewares. TODO This library currently does not support async middleware :( This is due to the fact that MiddlewareAPI expects D to be Dispatch<AnyAction>.