Closed wemeetagain closed 12 months ago
In order to be performant in certain usecases, we need to be able to force generated code to use number instead of bigint.
number
bigint
Protons should be extended to support a field option named jstype used like so:
jstype
message Foo { uint64 bar = 1 [jstype = JS_NUMBER]; }
import { Foo } from './foo.js' const foo = { bar: 100 // a number :) } typeof Foo.decode(Foo.encode(foo)).bar === 'number'
See
In order to be performant in certain usecases, we need to be able to force generated code to use
number
instead ofbigint
.Protons should be extended to support a field option named
jstype
used like so:See