New issue
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
from 使用 mapPropsToFields 时, 类型检查不能通过 #15642
Comments
Hello @angular-moon. Please provide a online reproduction by forking this link https://u.ant.design/codesandbox-repro or a minimal GitHub repository. Issues labeled by 你好 @angular-moon, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。7 天内未跟进的 issue 将会被自动关闭。 |
interface UserFormProps extends FormComponentProps {
onChange: Function;
username: { [key: string]: any };
}
const UserForm: React.SFC<UserFormProps> 我的意思是, UserForm 并不需要 onChange 和 username |
|
好的, 谢谢, 后续的版本会修改吗? mixin Form.create |
问题解决了先关了,欢迎继续讨论。 |
后续 Form 的 API 改成 Hook 版本的话就不需要有个中间组件 |
Reproduction link
https://codepen.io/pen/?&editable=true&editors=001
Steps to reproduce
重现链接是antd官网的示例, 改写为typescript版本类型检查不能通过
What is expected?
修复返回类型的声明
What is actually happening?
typescript 类型检查不匹配
The text was updated successfully, but these errors were encountered: