function / @typed/router/Path

parse

Parses a complete route string into Path AST nodes.

Package version
1.0.0-beta.13
Category
Path parsing
Since
1.0.0

Import

import { parse } from "@typed/router/Path";

Signatures

export declare function parse<const P extends string>(input: P): ParseAsts<P>;

Why

Runtime construction stays aligned with ParseAsts; unsupported trailing syntax is rejected.

Ownership and lifetime

parse parses immediately and returns fresh AST array state; it retains neither the input string nor parser cursor.

Source