ts-proto
ts-proto copied to clipboard
FR: a forceLong mode that decodes to string if the value >= 2**53, otherwise a number.
.. and sets the types to be string | number.
forceLong=string gets around the 2**53 problem nicely but does result in strings being required on encode, and created on decode, even in the cases where a number would suffice.
I could engineer the changes if the maintainers find the idea acceptable.