Interface ILazyValue<T>

Interface of the object returned by the getLazy instance

0.4.5

interface ILazyValue<T> {
    b?: boolean;
    toJSON(): T;
    v: T;
}

Type Parameters

  • T

Hierarchy (view full)

Properties

b? v

Methods

Properties

b?: boolean

Identifies if this instance is bypassing the internal caching mechanism which is used for testing

v: T

Returns the current cached value from the lazy lookup, if the callback function has not yet occurred accessing the value will cause the lazy evaluation to occur and the result will be returned.

Methods