Wrong inference of T when using immer #2973
Unanswered
olegdunkan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
We recommend typing the state from the top: https://tsplay.dev/NldkGN But, that doesn't help. If we don't have generics, it works: https://tsplay.dev/wRkxQN It doesn't infer as |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Playground
Beta Was this translation helpful? Give feedback.
All reactions