JSR does not support viem
's strong types
#3060
-
Check existing issues
Viem Version2.21.50 Current BehaviorThe JSR page of In editors like VSCode, this means that most types imported from JSR are cast to Expected BehaviorNo response Steps To ReproduceNo response Link to Minimal Reproducible ExampleNo response Anything else?It is my understanding that it comes from what JSR calls "slow types", and there isn't much we can do about it for now. Fortunately, we can still use the package published on |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I should also add for the sake of completeness that TypeScript 5.5 has separately introduced an |
Beta Was this translation helpful? Give feedback.
-
Not much we can do about this at the moment. The "Slow types" idea seems great, but libraries that do more in-depth inference (like Viem, tRPC, and others) won't be able to adhere in it's current state without compromising developer experience. |
Beta Was this translation helpful? Give feedback.
Not much we can do about this at the moment. The "Slow types" idea seems great, but libraries that do more in-depth inference (like Viem, tRPC, and others) won't be able to adhere in it's current state without compromising developer experience.