type-alias / @typed/router

AnyServiceMap

A widened Effect Context accepted as an already-built dependency.

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

Import

import type { AnyServiceMap } from "@typed/router";

Signatures

export type AnyServiceMap = Context.Context<any> | Context.Context<never>;

Why

Callers can provide existing services without forcing them through Layer acquisition.

Ownership and lifetime

This alias is compile-time only. A supplied Context is borrowed as already-built services; Matcher does not acquire or finalize those service values.

Other public imports

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

Source