From 2cba942bc1b958d682f9d6c48f20459449ed6c3d Mon Sep 17 00:00:00 2001 From: N/Ame <173015200+grqz@users.noreply.github.com> Date: Sat, 14 Sep 2024 11:03:04 +0000 Subject: [PATCH] fix: Conversion of type 'Date' to type 'string' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.ts(2352) --- server/src/generate_once.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/generate_once.ts b/server/src/generate_once.ts index 8194662..bbda72e 100644 --- a/server/src/generate_once.ts +++ b/server/src/generate_once.ts @@ -25,7 +25,7 @@ const options = program.opts(); for (const visitIdentifier in parsedCaches) { if (parsedCaches[visitIdentifier]) { const parsedDate = parsedCaches[visitIdentifier] - .generatedAt as string; + .generatedAt as unknown as string; parsedCaches[visitIdentifier].generatedAt = new Date( parsedDate, );