Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • TYPE

Hierarchy

  • MaybeCls

Index

Constructors

Private constructor

Properties

Private maybe

maybe: Maybe<TYPE>

Methods

andThen

  • andThen<NEWTYPE>(fn: function): MaybeCls<NEWTYPE>

filter

  • filter(predicate: function): MaybeCls<TYPE>
  • Parameters

    • predicate: function
        • (value: TYPE): boolean
        • Parameters

          • value: TYPE

          Returns boolean

    Returns MaybeCls<TYPE>

flatMap

  • flatMap<NEWTYPE>(fn: function): MaybeCls<NEWTYPE>

getOrElse

  • getOrElse<OTHER>(defaultValue: OTHER): TYPE | OTHER
  • Type parameters

    • OTHER

    Parameters

    • defaultValue: OTHER

    Returns TYPE | OTHER

getOrElseGet

  • getOrElseGet<OTHER>(defaultValue: function): TYPE | OTHER
  • Type parameters

    • OTHER

    Parameters

    • defaultValue: function
        • (): OTHER
        • Returns OTHER

    Returns TYPE | OTHER

isJust

  • isJust(): boolean

isNothing

  • isNothing(): boolean

map

  • map<NEWTYPE>(fn: function): MaybeCls<NEWTYPE>
  • Type parameters

    • NEWTYPE

    Parameters

    • fn: function
        • (value: TYPE): NEWTYPE
        • Parameters

          • value: TYPE

          Returns NEWTYPE

    Returns MaybeCls<NEWTYPE>

map2

  • Type parameters

    • OTHER

    • NEWTYPE

    Parameters

    • fn: function
        • (value: TYPE, other: OTHER): NEWTYPE
        • Parameters

          • value: TYPE
          • other: OTHER

          Returns NEWTYPE

    • other: MaybeCls<OTHER>

    Returns MaybeCls<NEWTYPE>

map3

  • Type parameters

    • OTHER1

    • OTHER2

    • NEWTYPE

    Parameters

    • fn: function
        • (value: TYPE, other1: OTHER1, other2: OTHER2): NEWTYPE
        • Parameters

          • value: TYPE
          • other1: OTHER1
          • other2: OTHER2

          Returns NEWTYPE

    • other1: MaybeCls<OTHER1>
    • other2: MaybeCls<OTHER2>

    Returns MaybeCls<NEWTYPE>

or

toArray

  • toArray(): Array<TYPE>

withDefault

  • withDefault<OTHER>(defaultValue: OTHER): TYPE | OTHER
  • Type parameters

    • OTHER

    Parameters

    • defaultValue: OTHER

    Returns TYPE | OTHER

withDefaultLazy

  • withDefaultLazy<OTHER>(defaultValue: function): TYPE | OTHER
  • Type parameters

    • OTHER

    Parameters

    • defaultValue: function
        • (): OTHER
        • Returns OTHER

    Returns TYPE | OTHER

Static join

Static just

  • just<TYPE>(value: TYPE | null | undefined): MaybeCls<TYPE>
  • Type parameters

    • TYPE

    Parameters

    • value: TYPE | null | undefined

    Returns MaybeCls<TYPE>

Static nothing

Static of

  • of<TYPE>(value: TYPE | null | undefined): MaybeCls<TYPE>
  • Type parameters

    • TYPE

    Parameters

    • value: TYPE | null | undefined

    Returns MaybeCls<TYPE>

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