我正在尝试使用next-redux-wrapper存储从Next.js中的getServerSideProps分派一个thunk。但是,我一直收到以下typescript错误: TS2345: Argument of type '(dispatch: any) => Promise<any>' is not assignable我以前没有在Redux中使用过TypeScript,
我使用的是Next.js和Typescript。 我使用了下一个redux包装器,并按照指南的指示在/pages/_app.js上添加了以下内容。import {Provider} from "react-redux";import withRedux from "next-redux-wrapper