type-alias / @typed/router/Matcher

AnyDependency

A route dependency supplied as an Effect Layer or Context.

Package version
1.0.0-beta.7
Category
Route services
Since
1.0.0

Import

import type { AnyDependency } from "@typed/router/Matcher";

Signatures

export type AnyDependency = AnyLayer | AnyServiceMap;

Why

Registration accepts both acquired and already-built service sources.

Ownership and lifetime

This union is compile-time only. Layer branches are scoped by candidate selection, while Context branches are borrowed without acquisition.

Other public imports

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

Source