-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[core] Generate PropTypes from type definitions #16642
Conversation
No bundle size changes comparing 2656c6c...3a51fe1 |
@eps1lon Is it possible to stop the CI from testing this PR? |
|
||
export default Avatar; | ||
export type AvatarProps = SimplifiedPropsOf<Avatar>; |
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.
SimplifiedPropsOf
doesn't include component
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.
Seems this is true for all props that should have component
// Property 'component' does not exist on type ...
type foo = ButtonProps['component']
You need to include You can skip azure only |
a6b4d2b
to
f70e3b8
Compare
This comment has been minimized.
This comment has been minimized.
d8a1dc9
to
64fbc2b
Compare
Unsure what to do about props that aren't explicitly used, looking at d2e87bc a lot of the props gets removed |
99d95dc
to
0283e3b
Compare
Co-Authored-By: Sebastian Silbermann <[email protected]>
Co-Authored-By: Sebastian Silbermann <[email protected]>
@merceyz Great job and thanks for sticking with it. |
Adds the required infrastructure to generate PropTypes from the TypeScript type definitions using typescript-to-proptypes
Motivation
Documented components