chore(monorepo/client): various type errors

This commit is contained in:
Elian Doran
2025-04-18 11:00:48 +03:00
parent 13a6fefaa2
commit fe87889ee7
5 changed files with 11 additions and 6 deletions

View File

@@ -207,7 +207,7 @@ export default class NoteIconWidget extends NoteContextAwareWidget {
async getIconToCountMap() {
if (!this.iconToCountCache) {
this.iconToCountCache = server.get<typeof this.iconToCountCache>("other/icon-usage");
this.iconToCountCache = server.get<IconToCountCache>("other/icon-usage");
setTimeout(() => (this.iconToCountCache = null), 20000); // invalidate cache after 20 seconds
}