MCPcopy Create free account
hub / github.com/Effect-TS/effect / orElseAbsurd

Function orElseAbsurd

packages/effect/src/internal/matcher.ts:543–548  ·  view source on GitHub ↗
(
  self: Matcher<I, R, RA, A, Pr, Ret>
)

Source from the content-addressed store, hash-verified

541
542/** @internal */
543export const orElseAbsurd = <I, R, RA, A, Pr, Ret>(
544 self: Matcher<I, R, RA, A, Pr, Ret>
545): [Pr] extends [never] ? (input: I) => Unify<A> : Unify<A> =>
546 orElse(() => {
547 throw new Error("effect/Match/orElseAbsurd: absurd")
548 })(self)
549
550/** @internal */
551export const result: <I, F, R, A, Pr, Ret>(

Callers

nothing calls this directly

Calls 1

orElseFunction · 0.85

Tested by

no test coverage detected