Interface ICachedValue<T>

A generic interface for holding a cached value

0.10.5

let cachedValue: ICachedValue<string> = {
v: "some value"
};
interface ICachedValue<T> {
    toJSON(): T;
    v: T;
}

Type Parameters

  • T

    The type of the value to be cached

Hierarchy (view full)

Properties

v

Methods

Properties

v: T

Returns the current cached value

Methods