-
-
Notifications
You must be signed in to change notification settings - Fork 850
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
[TS] incorrect type inference when using curried function with initial state #273
Comments
The base type should be inferred from the recipe function whenever possible. Fixes #273
Addressed by 80b91f8 |
I had quite some issues in the past if TS needs to infer the type from something you pass to it (it usually works for direct functions if not too complex, but not beyond that). I think in general you'll be more safe by writing |
@mweststrate I've figured it out already. Just not pushed yet. |
🎉 This issue has been resolved in version 1.9.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
In the example above, the recipe function signature should take precedence over the initial state's type.
The text was updated successfully, but these errors were encountered: