bigIntToNonNegativeDecimalString()
Convert a non-negative host BigInt to the canonical non-negative decimal storage scalar.
Import
Section titled “Import”import { bigIntToNonNegativeDecimalString } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function bigIntToNonNegativeDecimalString(value: bigint): NonNegativeDecimalIntegerStringParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | bigint | Unknown value to check or decode. |
Returns
Section titled “Returns”A NonNegativeDecimalIntegerString value.
Example
Section titled “Example”import { bigIntToNonNegativeDecimalString } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/scalar.ts