Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Some<T>

a class indicating that the included value exists.

Type Parameters

  • T

Hierarchy

  • Some

Implements

Index

Constructors

  • new Some<T>(value: T): Some<T>

Methods

  • doesNotHave(): this is None
  • get(): T
  • has(): this is Some<T>
  • unwrapForce(): T
  • unwrapOrDefault(altValue: T): T
  • unwrapOrElse(f: ((value: T) => T)): T
  • unwrapOrUndefined(): T

Generated using TypeDoc