From 4599721387cd66ba149c00e9dbcaa2589c48fad3 Mon Sep 17 00:00:00 2001 From: doprz <52579214+doprz@users.noreply.github.com> Date: Mon, 11 Nov 2024 21:33:09 -0600 Subject: [PATCH] chore: add type assertion --- src/views/lib/getGitHubStats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/lib/getGitHubStats.ts b/src/views/lib/getGitHubStats.ts index 8e06a14e..968690be 100644 --- a/src/views/lib/getGitHubStats.ts +++ b/src/views/lib/getGitHubStats.ts @@ -73,7 +73,7 @@ export class GitHubStatsService { constructor(githubToken?: string) { this.octokit = githubToken ? new Octokit({ auth: githubToken }) : new Octokit(); - this.cache = {}; + this.cache = {} as Record>; } private async getCachedData(key: string): Promise | null> {