From 320c867d8db44a081568442c922633d224b77d8c Mon Sep 17 00:00:00 2001 From: Schluffe Date: Sat, 8 Aug 2026 14:10:59 +0200 Subject: [PATCH] Adjust cache type to be Map independent --- engine/lib/cache.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/engine/lib/cache.ts b/engine/lib/cache.ts index c189d22..af9e6f5 100644 --- a/engine/lib/cache.ts +++ b/engine/lib/cache.ts @@ -1,4 +1,10 @@ -export type Cache = Map; +export type Cache = { + clear(): void; + delete(key: unknown): boolean; + get(key: unknown): T | undefined; + has(key: unknown): boolean; + set(key: unknown, value: T): unknown; +}; export function withCache) => T>( fn: U,