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