Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • A

Hierarchy

Index

Methods

andThen

  • andThen<B>(fn: function): Maybe<B>

assign

  • assign<K, B>(k: K, other: Maybe<B> | function): Maybe<A & object>

cata

do

  • do(fn: function): Maybe<A>
  • Parameters

    • fn: function
        • (a: A): void
        • Parameters

          • a: A

          Returns void

    Returns Maybe<A>

getOrElse

  • getOrElse(fn: function): A

getOrElseValue

  • getOrElseValue(defaultValue: A): A

map

  • map<B>(fn: function): Maybe<B>
  • Type parameters

    • B

    Parameters

    • fn: function
        • (a: A): B
        • Parameters

          • a: A

          Returns B

    Returns Maybe<B>

orElse

  • orElse(fn: function): Maybe<A>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc