You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -381,9 +380,9 @@ This library does not handle decoding BigInt by default, but you have three opti
381
380
382
381
**Encoding**
383
382
384
-
This library will encode a BigInt into a MessagePack int64/uint64 if it is > 32-bit OR you set `forceBigIntToInt64` to `true`. This library will encode a `number` that is > 32-bit into a MessagePack int64/uint64 if it is > 32-bit ONLY if you set `useInt64` to true, otherwise it encodes it as a MessagePack float64.
383
+
This library will encode a BigInt into a MessagePack int64/uint64 if it is > 32-bit OR you set `forceBigIntToInt64` to `true`. This library will encode a `number` that is > 32-bit into a MessagePack int64/uint64 if it is > 32-bit.
385
384
386
-
If you set `forceBigIntToInt64` to `true`the note:
385
+
If you set `forceBigIntToInt64` to `true` note:
387
386
388
387
- A bigint is encoded in 8 byte binaries even if it's a small integer
389
388
- A bigint must be smaller than the max value of the uint64 and larger than the min value of the int64. Otherwise the behavior is undefined.
this.context=(optionsas{context: ContextType}|undefined)?.contextasContextType;// needs a type assertion because EncoderOptions has no context property when ContextType is undefined
this.context=(optionsas{context: ContextType}|undefined)?.contextasContextType;// needs a type assertion because EncoderOptions has no context property when ContextType is undefined
0 commit comments