Options
All
  • Public
  • Public/Protected
  • All
Menu

Gets a value once on call, then returns the same value on subsequent gets.

Type parameters

  • T

    Stored value type.

Hierarchy

  • Lazy

Constructors

Methods

Constructors

constructor

Parameters

  • provider: Provider<T>

    Method that is called once on first get.

Returns Lazy

Methods

get

  • get(): T

Gets the value, only calls provider on first call.

Returns T

The value from the provider.

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.