type-alias / @typed/router/Parser

Parser.Run

Runs a Parser against a string literal input.

Package version
1.0.0-beta.7
Category
Parser contracts
Since
1.0.0
Member of
Parser

Import

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

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

Signatures

type Run<P extends Any, Input extends string> = Apply<P, Input>;

Why

Namespace users get a direct evaluation alias alongside Parse.

Ownership and lifetime

TypeScript instantiates Run while parsing a string-literal input; partial results and unconsumed text exist only in the resulting type.

Source