type-alias / @typed/router/Path

RuntimeParseResult

A runtime AST list paired with the unconsumed route suffix.

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

Import

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

Signatures

export type RuntimeParseResult = readonly [
    asts: ReadonlyArray<PathAst>,
    rest: string
];

Why

Advanced parsers can compose route parsing without requiring full input consumption.

Ownership and lifetime

RuntimeParseResult describes the fresh AST array and remaining string returned by runtime parsing; the alias owns neither value.

Source