Import the prop-types types from prop-types

Proprietary

Moves Requireable, Validator, ValidationMap and WeakValidationMap, which @types/react 19 no longer exports, from react to prop-types as type-only imports, and adds @types/prop-types to the packages they move in.

org.openrewrite.react.19.deprecated-prop-types-types
mod run . --recipe=org.openrewrite.react.19.deprecated-prop-types-types

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