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