isNonNegativeDecimalIntegerString()
Test whether a value is a canonical non-negative decimal integer string.
Import
Section titled “Import”import { isNonNegativeDecimalIntegerString } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function isNonNegativeDecimalIntegerString(value: unknown): value is NonNegativeDecimalIntegerStringParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | Unknown value to check or decode. |
Returns
Section titled “Returns”true when the value matches the expected shape.
Example
Section titled “Example”import { isNonNegativeDecimalIntegerString } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/scalar.ts