无锡慈善博物馆-后台管理

shaogen1995 4bcae63048 upp hace 1 año
public 2627a48f76 'init' hace 1 año
src 4bcae63048 upp hace 1 año
.gitignore 2627a48f76 'init' hace 1 año
README.md 2627a48f76 'init' hace 1 año
config-overrides.js 2627a48f76 'init' hace 1 año
package-lock.json 2627a48f76 'init' hace 1 año
package.json 385d062286 兑换记录 hace 1 año
path.tsconfig.json 2627a48f76 'init' hace 1 año
tsconfig.json 2627a48f76 'init' hace 1 año
yarn.lock 385d062286 兑换记录 hace 1 año

README.md

1.版本类型问题

找到 import { useDispatch } from "react-redux";

按住 Ctrl 点击 useDispatch 出来 useDispatch.d.ts类型声明文件 (路径node_modules>react-redux>es>hooks>useDispatch.d.ts)

找到最后面的 AnyAction,按住 Ctrl 点击 进入 (路径node_modules>redux>index.d.ts)

找到 export interface Action { type: T }

在type后面加一个 ? 即=>

export interface Action { type?: T }

2.使用 yarn。 npm有问题