function / @typed/router

normalizeDependencyInput

Normalizes one dependency or a dependency array to a single Effect Layer.

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

Import

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

Signatures

export declare function normalizeDependencyInput<Deps extends AnyDependency | ReadonlyArray<AnyDependency>>(input: Deps): NormalizeDeps<Deps>;

Why

Advanced builders can use the same Context-to-Layer conversion and merge policy as Matcher.

Ownership and lifetime

The function performs synchronous normalization and acquires no services. Returned Layers acquire only when a Matcher is run inside a Scope.

Other public imports

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

Source