-
Notifications
You must be signed in to change notification settings - Fork 650
refactor: migrate src/
to TypeScript
#809
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
Conversation
src/
to TypeScript
Can you reduce the diffs of the files that are not properly recognized as movied? It's IMO fine if we use a lot of |
After this PR has been merged, I'll update |
@eps1lon Thank you for your feedback; I've made all changes as renames. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
* build: add tsx files as targets of Babel * refactor: migrate ChildMapping to TypeScript * refactor: add types for TransitionGroupContext * refactor: migrate SwitchTransition to TypeScript * refactor: migrate Transition to TypeScript * refactor: migrate CSSTransition to TypeScript * refactor: migrate TransitionGroup to TypeScript * refactor: migrate ReplaceTransition to TypeScript * chore: update size-snapshot
I've migrated all JS files in
src/
to TypeScript.This doesn't create
.d.ts
files, so I'll work on it as a subsequent PR.Some implementations were hard to type. I've put
@ts-expect-error
comments for them and expect them to be fixed later.I also won't fix errors by the
propTypes
definitions because I'll removepropTypes
support in the future release.This is a starting point for TypeScript migration and I expect the types to get better.