Skip to content

fix: update current and original typings to assert draft value is unwrapped#1236

Merged
mweststrate merged 1 commit intoimmerjs:mainfrom
oriondean:fix/896-typings-current-draft
May 8, 2026
Merged

fix: update current and original typings to assert draft value is unwrapped#1236
mweststrate merged 1 commit intoimmerjs:mainfrom
oriondean:fix/896-typings-current-draft

Conversation

@oriondean
Copy link
Copy Markdown
Contributor

Resolves #896

current and original typings have been updated to ensure that the passed in value is a draft type, with the returned type being the unwrapped (non-draft) equivalent.

@mweststrate
Copy link
Copy Markdown
Collaborator

Looking great, thanks!

@mweststrate mweststrate merged commit bf2d154 into immerjs:main May 8, 2026
1 check passed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

🎉 This PR is included in version 11.1.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typings of current() don't reflect that returned object is not a draft

2 participants