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] prop-types
, propTypes
: handle React.* TypeScript types
#3049
[Fix] prop-types
, propTypes
: handle React.* TypeScript types
#3049
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3049 +/- ##
==========================================
- Coverage 97.42% 97.40% -0.02%
==========================================
Files 111 111
Lines 7452 7472 +20
Branches 2726 2736 +10
==========================================
+ Hits 7260 7278 +18
- Misses 192 194 +2
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
a1769e1
to
a315a2f
Compare
a315a2f
to
d74a7d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks great
prop-types
, propTypes
: handle React.* TypeScript types
Does this solve #2777 as well? |
Nope, it will show an error for code like this
because If we want this case to be handled we need to make |
ok - we can look into that in a followup. it'd be great to allow all generic types and actually respect what they declare. |
I actually forgot to handle the |
Fixes #3045 and related issues (#2786)
Implements logic discussed in this comment: #2777 (comment)