Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix #3517, Restore types for newValue and oldValue on IValueDidChange and IBoxDidChange. #3609

Merged
merged 2 commits into from
Jan 12, 2023

Conversation

emereum
Copy link
Contributor

@emereum emereum commented Jan 12, 2023

Fixes #3517

This PR restores the generic types for newValue and oldValue on IValueDidChange and IBoxDidChange, removing the unknown type.

I think it would be worthwhile to update the generic default from T = any to T = unknown in the next major version bump as discussed in #3517

@changeset-bot
Copy link

changeset-bot bot commented Jan 12, 2023

🦋 Changeset detected

Latest commit: 8bfe706

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
mobx Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@emereum emereum changed the title Restore types for newValue and oldValue on IValueDidChange and IBoxDidChange. Fix #3517, Restore types for newValue and oldValue on IValueDidChange and IBoxDidChange. Jan 12, 2023
@kubk
Copy link
Collaborator

kubk commented Jan 12, 2023

Nice addition, thank you 👍

@kubk kubk merged commit 7095fa4 into mobxjs:main Jan 12, 2023
@github-actions github-actions bot mentioned this pull request Jan 12, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants