API Reference
bigIntToDecimalString()
Convert a host BigInt to the canonical decimal storage scalar.
Import
import { bigIntToDecimalString } from "@graphrefly/ts/storage";
Signature
function bigIntToDecimalString(value: bigint): DecimalIntegerString
Parameters
| Parameter | Type | Description |
|---|---|---|
value | bigint | Unknown value to check or decode. |
Returns
A DecimalIntegerString value.
Example
import { bigIntToDecimalString } from "@graphrefly/ts/storage";
Source
packages/ts/src/storage/scalar.ts