UNPKG

@effect-ts/system

Version:

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

12 lines (9 loc) 294 B
// ets_tracing: off import { chain_, unit } from "./core.js" import type { Effect } from "./effect.js" /** * Ignores the result of the effect replacing it with a void */ export function asUnit<R, E, X>(self: Effect<R, E, X>, __trace?: string) { return chain_(self, () => unit, __trace) }