eps1lon/types-react-codemod

[Bug] Replaces Own `Validator` type with `PropTypes.Validator`

Opened this issue · 1 comments

Hi,

I just used the types-react-codemod@latest preset-19 per the TypeScript Changes in the React 19 upgrade guide and it replaced my own Validator type in one of my files with PropTypes.Validator.

Not a big deal but thought I would report it. Thanks for the codemod!

Yeah I cheated here a bit and just looked for Validator without actually checking if it comes from react. Would love to see a fix from somebody but I won't have time to prioritize this.