UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

13 lines (10 loc) 312 B
// ets_tracing: off import * as T from "../../../../Effect/index.js" import type * as C from "../core.js" import * as FromEffect from "./fromEffect.js" /** * Accesses the whole environment of the stream. */ export function environment<R>(): C.RIO<R, R> { return FromEffect.fromEffect(T.environment<R>()) }