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
Fix form types and add type test #7245
Conversation
What is the benefits? |
@afc163 You can try compile the test file using the old type. |
3a1833f
to
f7da361
Compare
Just for record. |
24c2948
to
b3a8cf7
Compare
rebase |
b3a8cf7
to
7672603
Compare
Codecov Report
@@ Coverage Diff @@
## master #7245 +/- ##
==========================================
+ Coverage 85.73% 88.29% +2.55%
==========================================
Files 231 231
Lines 4893 4946 +53
Branches 1332 1412 +80
==========================================
+ Hits 4195 4367 +172
+ Misses 698 579 -119
Continue to review full report at Codecov.
|
7672603
to
91ab3b9
Compare
91ab3b9
to
0fe8e7b
Compare
😳这个覆盖率。。。 |
没道理。 |
This is a breaking change for me. I am using types/react@15.0.24 (upgrading react types breaks my build when importing antd components) How I am currently implementing FormComponentProps:
(I'm sorry I don't know how to enforce types in Codepen) When upgrading to antd 2.12.7 I get 'Property 'form' is missing in type...' when consuming the Form:
|
@miaojiuchen Try |
Same error. I will try upgrade my project to use latest types. Can you confirm what version of react types you are using? |
Oh. You don't need pass |
No luck :( |
I'm using |
I get same error as @mitchelldemler when trying to consume my form:
When I try to consume ContainerDetail form: Error thrown: Libraries used:
|
Refer to https://github.com/DefinitelyTyped/DefinitelyTyped/blob/913d4de374d9950d60d59b164ee54988142bad6c/types/react-redux/index.d.ts#L38