type-alias / @typed/router/Path

ParseAsts

Parses a route string literal into its ordered Path AST tuple.

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

Import

import type { ParseAsts } from "@typed/router/Path";

Signatures

export type ParseAsts<Input extends string> = GetAsts<ParseAstsResult<Input>>;

Why

Route constructors retain literal parameter names, query declarations, and optionality in their types.

Ownership and lifetime

TypeScript computes ParseAsts from the route literal or AST tuple supplied to it; the alias is erased and retains no runtime data.

Source