Replies: 3 comments
-
|
Hey @zaunermax, thanks for reporting this. This is a limitation where TypeScript is not able to predict the output in the presence of a generic type. You will have to override and cast your returned value to |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Ok thanks for clarifying, sorry to having bothered you 🙌 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
My pleasure, no problem. I'm adding this to the wiki. Cheers |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🐞 Bug Report
Describe the bug
I seem to run into a bug, where
Updateworks flawlessly on static types, but breaks on generic types.Reproduce the bug
Expected behavior
P.Updateshould work with generics. Not sure if this is a TS limitation though 🤔Additional context
toolbelt version 8.0.7 - Typescript version 4.0.3
Beta Was this translation helpful? Give feedback.
All reactions