Convert propTypes to a TypeScript props type

Proprietary

Declares an interface from a function component's propTypes and annotates the component's props parameter with it, keeping the propTypes assignment. Components with an unsupported propTypes entry are left alone.

org.openrewrite.react.refactoring.prop-types-to-typescript
mod run . --recipe=org.openrewrite.react.refactoring.prop-types-to-typescript

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.