Skip to content

True Myth / maybe / Matcher

Type Alias: Matcher<T, A>

Matcher<T, A> = object

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

Type Parameters

T

T

A

A

Properties

Just()

Just: (value) => A

Parameters

value

T

Returns

A


Nothing()

Nothing: () => A

Returns

A