Type Alias Matcher<T, E, A>

Matcher: { Err: (error: E) => A; Ok: (value: T) => A }

A lightweight object defining how to handle each variant of a Result.

Type Parameters

  • T
  • E
  • A