Skip to content

Commit

Permalink
fix:
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
grqz committed Sep 14, 2024
1 parent 9d5dae5 commit 2cba942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/generate_once.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 2cba942

Please sign in to comment.