Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(codemods/react/prop-types-typescript): replace @ts-expect-error with explicit any annotations #55

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

amirabbas-gh
Copy link
Collaborator

@amirabbas-gh amirabbas-gh commented Feb 1, 2025

📚 Description

This refactors the prop-types-typescript codemod source by replacing @ts-expect-error comments with explicit any type annotations. This change makes type assignments more explicit, reducing reliance on suppression comments while maintaining functionality.

🧪 Test Plan

  • Run npm run test to verify that the codemod works correctly.

@amirabbas-gh amirabbas-gh changed the title refactor(codemods/react/prop-types-typescript): improve codemod with TypeScript types refactor(codemods/react/prop-types-typescript): replace @ts-expect-error with explicit any annotations Feb 4, 2025
@amirabbas-gh amirabbas-gh force-pushed the improve_react/props-types-typescript_codemod branch from 38fffb4 to a560d67 Compare February 4, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant