We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
let base: {readonly a: number} = {a: 1} let result: typeof base = produce(base, s => void s.a++)
For any recipe function that explicitly returns undefined, its return type is incorrectly inferred to be undefined instead of typeof base.
undefined
typeof base
This will be fixed in v1.9.3
The text was updated successfully, but these errors were encountered:
fix(ts): return undefined from produce
dd85eb9
Fixes #276
d60db14
🎉 This issue has been resolved in version 1.9.3 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
No branches or pull requests
For any recipe function that explicitly returns
undefined
, its return type is incorrectly inferred to beundefined
instead oftypeof base
.This will be fixed in v1.9.3
The text was updated successfully, but these errors were encountered: