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