Type alias Matcher<T, A>

Matcher<T, A>: {
    Just: ((value) => A);
    Nothing: (() => A);
}

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

Type Parameters

  • T

  • A

Type declaration

  • Just: ((value) => A)
      • (value): A
      • Parameters

        • value: T

        Returns A

  • Nothing: (() => A)
      • (): A
      • Returns A

Generated using TypeDoc