Skip to content

Use bigint literals instead of BigInt constructor. #928

@bhollis

Description

@bhollis

Apologies if this has already been discussed, but looking at the output of ts-proto with --ts_proto_opt=forceLong=bigint, it uses BigInt("0") instead of 0n, which would be smaller output.

e.g.

message.myId !== BigInt("0")

vs.

message.myId !== 0n

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions