Type alias CacheValue<T>

CacheValue<T>: {
    promise: Promise<unknown>;
    status: "waiting";
} | {
    status: "fulfilled";
    value: T;
} | {
    error: unknown;
    status: "rejected";
}

Type Parameters

  • T

Type declaration

  • promise: Promise<unknown>
  • status: "waiting"

Type declaration

  • status: "fulfilled"
  • value: T

Type declaration

  • error: unknown
  • status: "rejected"

Generated using TypeDoc