ts-proto icon indicating copy to clipboard operation
ts-proto copied to clipboard

Feature Request: Longs as BigInts

Open jeffpyke opened this issue 4 years ago • 1 comments

Feature request: In addition to the Long library, add ability to type longs as BigInts.

jeffpyke avatar May 13 '20 19:05 jeffpyke

+1. Many years ago we chose to code UUID as 2x64 bit integers. The option--ts_proto_opt=forceLong=Long made it work, it would be nice to have BigInt.

message UUID {
    required fixed64 least_sign_bits = 1 
    required fixed64 most_sign_bits = 2 
}

eba-ts avatar Aug 19 '22 11:08 eba-ts

https://github.com/stephenh/ts-proto/pull/742

azizghuloum avatar Dec 28 '22 10:12 azizghuloum

This was fixed by #742 ; thanks @azizghuloum !

Also filed https://github.com/stephenh/ts-proto/issues/744 as a follow up.

stephenh avatar Dec 29 '22 16:12 stephenh