type-alias / @typed/router/Parser

Parser.Digit

The decimal digit character union.

Package version
1.0.0-beta.13
Category
Parser primitives
Since
1.0.0
Member of
Parser

Import

import { Parser } from "@typed/router/Parser";

Access Parser.Digit through the imported Parser export. Its declaration below describes the member.

Signatures

type Digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";

Why

Numeric characters participate in parameter names without becoming number values.

Ownership and lifetime

Digit is a string-literal union used only during compiler evaluation and is erased from emitted JavaScript.

Source