Type Alias Matcher<T, E, A>

Matcher: { Rejected: (reason: E) => A; Resolved: (value: T) => A }

A lightweight object defining how to handle each outcome state of a Task.

Type Parameters

  • T
  • E
  • A

Type declaration

  • Rejected: (reason: E) => A
  • Resolved: (value: T) => A