GraphReFlyTS

API Reference

bigIntToNonNegativeDecimalString()

Convert a non-negative host BigInt to the canonical non-negative decimal storage scalar.

Import

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

Signature

function bigIntToNonNegativeDecimalString(value: bigint): NonNegativeDecimalIntegerString

Parameters

ParameterTypeDescription
valuebigintUnknown value to check or decode.

Returns

A NonNegativeDecimalIntegerString value.

Example

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

Source

packages/ts/src/storage/scalar.ts