function / @typed/router/Matcher

merge

Combines matcher case arrays in argument order.

Package version
1.0.0-beta.7
Category
Matcher composition
Since
1.0.0

Import

import { merge } from "@typed/router/Matcher";

Signatures

export declare function merge<const Matchers extends ReadonlyArray<Matcher.Any>>(...matchers: Matchers): Matcher<Matcher.MergeSuccess<Matchers>, Matcher.MergeError<Matchers>, Matcher.MergeServices<Matchers>>;

Why

Independent route tables retain their local layouts and providers while sharing one execution stream.

Ownership and lifetime

The function allocates a Matcher containing concatenated immutable case arrays. It does not acquire any Layer or subscribe to Navigation.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source