From 2b14f9150f6a0f35ba66736cd5df78e71d037304 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Mon, 6 Jan 2025 11:42:17 +0530 Subject: [PATCH] esl --- web/packages/base/kv.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/packages/base/kv.ts b/web/packages/base/kv.ts index 45cf3afece..5fa20fb4ce 100644 --- a/web/packages/base/kv.ts +++ b/web/packages/base/kv.ts @@ -145,6 +145,10 @@ export const _getKV = async ( if (v === undefined) return undefined; if (typeof v != type) throw new Error( + // This is just an error message, it is fine if stringification + // produces nothing useful always, it might too in some cases. + // + // eslint-disable-next-line @typescript-eslint/no-base-to-string `Expected the value corresponding to key ${key} to be a ${type}, but instead got ${String(v)}`, ); return v as T;