[Bug] Replaces Own `Validator` type with `PropTypes.Validator`
Opened this issue · 1 comments
daniel-nagy commented
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
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.