-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
JSR does not support viem's strong types #3057
Copy link
Copy link
Closed
Description
Check existing issues
- I checked there isn't already an issue for the bug I encountered.
Viem Version
2.21.50
Current Behavior
The JSR page of viem does not provide types for some modules (see the documentation for the mainnet chain definition).
In editors like VSCode, this means that most types imported from JSR are cast to any, and do not leverage the type safety of Viem.
Expected Behavior
No response
Steps To Reproduce
No response
Link to Minimal Reproducible Example
No 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 npm. But I'm curious to know if there are any plans going forward to make viem work with JSR, or if JSR's no-slow types policy is just too much at odds with Viem's strong type guarantees.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels