中国铁塔集团-3D数据-管理后台

shaogen1995 c723615afb up hai 1 ano
public 5fe972ac89 upp hai 1 ano
src c723615afb up hai 1 ano
.gitignore be1ba892dd first commit %!s(int64=2) %!d(string=hai) anos
README.md be1ba892dd first commit %!s(int64=2) %!d(string=hai) anos
config-overrides.js be1ba892dd first commit %!s(int64=2) %!d(string=hai) anos
package-lock.json 51a6938fe8 up-相机管理 %!s(int64=2) %!d(string=hai) anos
package.json 51a6938fe8 up-相机管理 %!s(int64=2) %!d(string=hai) anos
path.tsconfig.json be1ba892dd first commit %!s(int64=2) %!d(string=hai) anos
tsconfig.json be1ba892dd first commit %!s(int64=2) %!d(string=hai) anos

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 }