Convert propTypes to a TypeScript props type
ProprietaryDeclares 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-typescriptmod run . --recipe= org. openrewrite. react. refactoring. prop-types-to-typescriptInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.