type-alias / @typed/router/Matcher

DependencyRequirements

Extracts the services needed to acquire a matcher Layer dependency.

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

Import

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

Signatures

export type DependencyRequirements<D> = D extends Layer.Layer<any, any, infer R> ? R : never;

Why

Local providers do not hide their own upstream requirements.

Ownership and lifetime

Computed only by TypeScript; runtime service lifetimes remain those of the environment used to acquire the represented Layer.

Other public imports

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

Source