Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WeakSome<B, T>

a class indicating that the included value exists.

Type Parameters

  • B extends object

  • T

Hierarchy

  • WeakSome

Implements

Index

Constructors

  • new WeakSome<B, T>(base: B, value: T): WeakSome<B, T>

Properties

__weakMap: WeakMap<B, T> = ...

Methods

  • get(base: B): T
  • has(base: B): true
  • unwrapForce(base: B): T
  • unwrapOrDefault(base: B, altValue: T): T
  • unwrapOrElse(base: B, f: ((value: T) => T)): T
  • unwrapOrUndefined(base: B): undefined | T

Generated using TypeDoc