Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Support BigInt in TypeScript runtime #113

@arendjr

Description

@arendjr

The TypeScript runtime currently has limited support for integers larger than 2^53-1. bigint types are used when passing u64 WASM primitives, but when they’re passed as part of a MessagePack-encoded structure, they will always use number, causing precision to be lost for larger numbers.

Recently a new PR for msgpack-js made it possible to use bigint with MessagePack as well: msgpack/msgpack-javascript#211

I think it makes sense for us to implement an opt-in option with a similar effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions