function / @typed/router/Path

join

Formats ordered Path AST nodes as a normalized route string.

Package version
1.0.0-beta.7
Category
Path formatting
Since
1.0.0

Import

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

Signatures

export declare function join<const Parts extends ReadonlyArray<PathAst>>(asts: Parts): Join<Parts>;

Why

Route values derive their public path from the same AST used for schemas and matching.

Ownership and lifetime

join formats immediately into a new string and retains neither the AST array nor its nodes.

Source