type-alias / @typed/router/Matcher

DependencyProvided

Extracts the services supplied by a matcher dependency.

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

Import

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

Signatures

export type DependencyProvided<D> = D extends Layer.Layer<infer Provided, any, any> ? Provided : D extends Context.Context<infer Provided> ? Provided : never;

Why

Providing a dependency removes those services from the returned Matcher’s requirements.

Ownership and lifetime

Computed only by TypeScript; the actual services are owned by the Layer or borrowed Context represented by D.

Other public imports

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

Source