chore: add type assertion

This commit is contained in:
doprz
2024-11-11 21:33:09 -06:00
parent 27971f7d5a
commit 4599721387

View File

@@ -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<string, CachedData<unknown>>;
}
private async getCachedData<T>(key: string): Promise<CachedData<T> | null> {