Skip to content

refactor: apply more strict types to ReplaceTransition #812

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

Merged
merged 2 commits into from
May 3, 2022

Conversation

koba04
Copy link
Member

@koba04 koba04 commented Apr 5, 2022

This is a follow-up PR of #809.
I've applied more strict types to ReplaceTransion, which couldn't be done at #809 to avoid being treated as add/remove because of many diffs.

@koba04 koba04 requested a review from eps1lon April 5, 2022 16:25
@koba04
Copy link
Member Author

koba04 commented Apr 5, 2022

After this PR, I'll work on creating .d.ts files from the source code, which would be a breaking change for TS users.

const {
children,
in: inProp,
onEnter: _onEnter,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the rename here only for ESLint? If so, then we should configure the rule appropriately. I remember there was an option specifically for rest-spread.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eps1lon Thank you! I've enabled the ignoreRestSiblings option at d8dcd90

@koba04 koba04 requested a review from eps1lon May 2, 2022 13:20
@koba04 koba04 merged commit ff1d70b into alpha May 3, 2022
@koba04 koba04 deleted the refactor-add-more-strict-types-for-replace-transition branch May 3, 2022 14:10
koba04 added a commit that referenced this pull request May 3, 2022
* refactor: apply more strict types to ReplaceTransition

* lint: enable the ignoreRestSiblings option of no-unused-vars
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.

2 participants