Skip to content
PACKAGES

nonNegativeDecimalStringToBigInt()

Parse a canonical non-negative decimal storage scalar into host BigInt.

import { nonNegativeDecimalStringToBigInt } from "@graphrefly/ts/storage";
function nonNegativeDecimalStringToBigInt(value: NonNegativeDecimalIntegerString): bigint
ParameterTypeDescription
valueNonNegativeDecimalIntegerStringUnknown value to check or decode.

A bigint value.

import { nonNegativeDecimalStringToBigInt } from "@graphrefly/ts/storage";

packages/ts/src/storage/scalar.ts