type-alias / @typed/router/Matcher

Matcher.Services

Extracts a Matcher’s required Effect services.

Package version
1.0.0-beta.7
Category
Matcher type inference
Since
1.0.0
Member of
Matcher

Import

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

Access Matcher.Services through the imported Matcher export. Its declaration below describes the member.

Signatures

type Services<T> = [
    T
] extends [
    Matcher<infer _A, infer _E, infer R>
] ? R : never;

Why

Composition can prove which requirements remain after local providers.

Ownership and lifetime

Computed only by TypeScript; service ownership remains with the environment that runs the Matcher.

Other public imports

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

Source