type-alias / @typed/router

MatchHandlerReturnValue

The value, Effect, Stream, or Fx accepted as route output.

Package version
1.0.0-beta.13
Category
Route handlers
Since
1.0.0

Import

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

Signatures

export type MatchHandlerReturnValue<A, E, R> = Fx.Fx<A, E, R> | Stream.Stream<A, E, R> | Effect.Effect<A, E, R> | A;

Why

All supported producers normalize to Fx while preserving their errors and service requirements.

Ownership and lifetime

This union adds no lifetime. Plain values are immediate; Effect, Stream, and Fx resources begin only when the selected handler is run in its route Scope.

Other public imports

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

Source