We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexModelState是我自定义在src/models/index.tsx 的一个state接口,用函数式组件时没问题,用类组件就提示类型不兼容,就算用Props接口也没用,不知道该怎么给model定义了
The text was updated successfully, but these errors were encountered:
可以参考这里的写法 https://github.com/ant-design/pro-blocks/blob/antd%403/AccountCenter/src/index.tsx 只是更简单,很多定义可以从 umi 中取出
Sorry, something went wrong.
umi 把 model 里的类型都收集起来一起导出了, 为什么不更进一步聚合一下作为 connect 入参的类型, 省掉还要手动 import ModalState. useSelector 同理.
No branches or pull requests
IndexModelState是我自定义在src/models/index.tsx 的一个state接口,用函数式组件时没问题,用类组件就提示类型不兼容,就算用Props接口也没用,不知道该怎么给model定义了
The text was updated successfully, but these errors were encountered: