Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Option<T>

Type Parameters

  • T

Hierarchy

  • Option

Implements

Index

Constructors

  • new Option<T>(value?: T): Option<T>

Methods

  • doesNotHave(): this is None
  • has(): this is Some<T>
  • set(val: T): void
  • unwrapForce(): T
  • unwrapOrDefault(altValue: T): T
  • unwrapOrElse(f: ((...vals: any) => T)): T
  • unwrapOrUndefined(): undefined | T

Generated using TypeDoc