@nevware21/ts-utils
    Preparing search index...

    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 Summary)

    Index
    v
    v: T

    Returns the current cached value