Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • L

  • A

Hierarchy

  • OptionValidation

Index

Constructors

Properties

Methods

Constructors

constructor

  • new OptionValidation<L, A>(value: Option<Validation<L, A>>): OptionValidation<L, A>

Properties

Readonly _A

_A: A

Readonly _L

_L: L

Readonly _URI

_URI: "OptionValidation"

Readonly value

value: Option<Validation<L, A>>

Methods

fold

  • fold<R>(failure: (l: L) => R, success: (a: A) => R): Option<R>
  • Type parameters

    • R

    Parameters

    • failure: (l: L) => R
        • (l: L): R
        • Parameters

          • l: L

          Returns R

    • success: (a: A) => R
        • (a: A): R
        • Parameters

          • a: A

          Returns R

    Returns Option<R>

map

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Interface
  • Interface with type parameter
  • Class with type parameter
  • Property
  • Enumeration

Generated using TypeDoc