-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
Broken test: declare props separate from usage for Button, MenuItem, ListItem #16315
Conversation
@@ -170,6 +172,20 @@ const BottomNavigationTest = () => { | |||
); | |||
}; | |||
|
|||
const ButtonTest = () => { | |||
const p: ButtonProps = { |
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.
Does
const p: ButtonProps = { | |
const p: ButtonProps<'span'> = { |
work?
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.
It doesn't.
No bundle size changes comparing 0d4f1b1...29c47d1 |
I found the MenuItem issue was already reported in #16245 |
I have added a test for ListItem - this was reported in #14971 |
Closing in favor of the existing issues. |
I've discovered a typescript issue when trying to migrate a 3.x codebase to 4.x
On the 4.x master, it seems that declaring/constructing props separate from usage, while it may be valid, fails to typecheck. A representative error is:
for
@eps1lon @pelotom thoughts?
/issue MenuItem #16245
/issue ListItem #14971
/issue Button #15827