eps1lon / types-react-codemod

Collection of transforms for jscodeshift related to `@types/react`
MIT License
301 stars 10 forks source link

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

Open daniel-nagy opened 2 months ago

daniel-nagy commented 2 months ago

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!

eps1lon commented 2 months ago

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.