Skip to content
PACKAGES

isNonNegativeDecimalIntegerString()

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

import { isNonNegativeDecimalIntegerString } from "@graphrefly/ts/storage";
function isNonNegativeDecimalIntegerString(value: unknown): value is NonNegativeDecimalIntegerString
ParameterTypeDescription
valueunknownUnknown value to check or decode.

true when the value matches the expected shape.

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

packages/ts/src/storage/scalar.ts