We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be91f2c commit 0f5ff1eCopy full SHA for 0f5ff1e
1 file changed
types/lru.d.ts
@@ -53,7 +53,7 @@ export class LRU<T = any> {
53
/** Pointer to the least recently used item (first to be evicted) */
54
first: LRUItem<T> | null;
55
/** Hash map for O(1) key-based access to cache nodes */
56
- items: Record<any, LRUItem<T>>;
+ items: Record<any, LRUItem<T> | undefined>;
57
/** Pointer to the most recently used item */
58
last: LRUItem<T> | null;
59
/** Maximum number of items to store (0 = unlimited) */
0 commit comments