GraphReFlyTS

API Reference

isNonNegativeDecimalIntegerString()

Test whether a value is a canonical non-negative decimal integer string.

Import

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

Signature

function isNonNegativeDecimalIntegerString(value: unknown): value is NonNegativeDecimalIntegerString

Parameters

ParameterTypeDescription
valueunknownUnknown value to check or decode.

Returns

true when the value matches the expected shape.

Example

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

Source

packages/ts/src/storage/scalar.ts