juno-ui-components uses React PropTypes to declare the API and set default values. Since we want to standardize on Typescript for libs in the future and PropTypes will go away with React 19, it would be good if there was an automatic or semi-automatic way to initially create the types from the PropTypes we already have.
[x] Spike to see if the ratchet codemod can do this for us
[x] Check what happens to <Component>.defaultProps in React 19. Does this go away as well. If yes, what is the replacement.
[x] Check whether the Typescript types work in the same way as PropTypes in Storybook (in that the comment directly above the respective prop is automatically shown by storybook in the prop table documentation. If not, find out how to do this.
juno-ui-components
uses ReactPropTypes
to declare the API and set default values. Since we want to standardize on Typescript for libs in the future andPropTypes
will go away with React 19, it would be good if there was an automatic or semi-automatic way to initially create the types from thePropTypes
we already have.<Component>.defaultProps
in React 19. Does this go away as well. If yes, what is the replacement.PropTypes
in Storybook (in that the comment directly above the respective prop is automatically shown by storybook in the prop table documentation. If not, find out how to do this.