GraphReFlyTS

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

ParameterTypeDescription
valueNonNegativeDecimalIntegerStringUnknown value to check or decode.

Returns

A bigint value.

Example

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

Source

packages/ts/src/storage/scalar.ts