Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Failure<Err, A>

Type parameters

  • Err

  • A

Hierarchy

  • Failure

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly error

error: Err

Readonly value

value: Maybe<A>

Methods

Readonly unpack

  • unpack<B>(left: (err: Err) => B, right: (value: A) => B): B
  • Type parameters

    • B

    Parameters

    • left: (err: Err) => B
        • (err: Err): B
        • Parameters

          • err: Err

          Returns B

    • right: (value: A) => B
        • (value: A): B
        • Parameters

          • value: A

          Returns B

    Returns B

Static of

Generated using TypeDoc