variable / @typed/router/AST

join

Constructs an ordered joined Route AST node.

Package version
1.0.0-beta.13
Category
Route structure
Since
1.0.0

Import

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

Signatures

export declare const join: (parts: ReadonlyArray<RouteAst>) => RouteAst.Join;

Why

Nested route schemas and parameter ownership remain visible after composition.

Ownership and lifetime

join returns a fresh plain AST node immediately and retains any supplied child nodes or arrays by reference; it acquires no external resource.

Source