the thing is, as a web developer I'm extremely confused whether the i64 is a number, or it must be provided as a BigInt.
I believe based on the limits of JS' Number (MAX_SIZE, MAX_INT_SIZE) etc, one should be able to figure out if an int64 is assignable to a JS Number or if it requires a BigInt.
For the https://github.com/aapoalas/denonomicon/blob/main/static/contents/types.md page, it should also show the corresponding type for javascript. for example:
the thing is, as a web developer I'm extremely confused whether the
i64
is a number, or it must be provided as aBigInt
.I believe based on the limits of JS'
Number
(MAX_SIZE, MAX_INT_SIZE) etc, one should be able to figure out if anint64
is assignable to a JSNumber
or if it requires aBigInt
.