Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IFailableMatchCase<T, R, E>

Argument type of .match method on an {@link IFailbale}. It takes an object containing two callbacks; One for success and failure case. The value returned by these callbacks should be the same type.

Type parameters

  • T

  • R

  • E

Hierarchy

  • IFailableMatchCase

Index

Methods

Methods

failure

  • failure(e: E): T
  • Callback that is run in case of failure. It is passed the error value of the result.

    Parameters

    • e: E

    Returns T

success

  • success(v: R): T
  • Callback that is called in case of success. It is passed the success value of the result.

    Parameters

    • v: R

    Returns T

Generated using TypeDoc