assertDecimalIntegerString()
Assert a canonical decimal integer string and return it typed.
Import
Section titled “Import”import { assertDecimalIntegerString } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function assertDecimalIntegerString( value: unknown, label = "decimal integer",): DecimalIntegerStringParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | Unknown value to check or decode. |
label | unknown | label value used by the helper. |
Returns
Section titled “Returns”The narrowed, validated value.
Example
Section titled “Example”import { assertDecimalIntegerString } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/scalar.ts