Functions
getBigIntUpcastResponseTransformer
getBigIntUpcastResponseTransformer(
allowedNumericKeyPaths
):RpcResponseTransformer
Returns a transformer that upcasts all Number
values to BigInts
unless they match within the
provided KeyPaths. In other words, the provided KeyPaths will
remain as Number
values, any other numeric value will be upcasted to a BigInt
.
Note that you can use KEYPATH_WILDCARD to match any key within a KeyPath.
Parameters
Parameter | Type |
---|---|
allowedNumericKeyPaths | readonly KeyPath [] |
Returns
RpcResponseTransformer