Skip to content

JSR does not support viem's strong types #3057

@allezxandre

Description

@allezxandre

Check existing issues

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions