Enumeration IntDecoding

Configure how integers in JSON response will be decoded.

Enumeration Members

Enumeration Members

BIGINT: "bigint"

All integers will be decoded as BigInts.

MIXED: "mixed"

Integers will be decoded as Numbers if they are less than or equal to Number.MAX_SAFE_INTEGER, otherwise they will be decoded as BigInts.

SAFE: "safe"

All integers will be decoded as Numbers, but if any values are greater than Number.MAX_SAFE_INTEGER an error will be thrown.

UNSAFE: "unsafe"

All integers will be decoded as Numbers, meaning any values greater than Number.MAX_SAFE_INTEGER will lose precision.

Generated using TypeDoc