Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MaybeProvider<T>

Type parameters

  • T

Hierarchy

  • MaybeProvider

Implemented by

Index

Properties

Readonly isNone

isNone: boolean

Readonly isSome

isSome: boolean

Methods

defaulting

flatMap

get

  • get(): T

getOrElse

  • getOrElse(value: T): T
  • Returns the some value or the provided default value.

    Parameters

    • value: T

      the default value to use if this Maybe is none

    Returns T

    the default value or the some value

map

Generated using TypeDoc