Fix bad typings left over from the migration

This commit is contained in:
Hornwitser committed 2023-11-19 04:50:07 +01:00
1 parent 7314dc99c8
commit 80e1904175
22 files changed
+93 -117

No files matched your search

+3 -3
View File
@@ -52,7 +52,7 @@ export class Control extends lib.Link {
accountRoles: lib.AccountRole[] | null = null;
/** Updates not handled by the subscription service */
accountUpdateHandlers: Function[] = [];
accountUpdateHandlers: accountHandler[] = [];
logHandlers: Map<lib.LogFilter, logHandler[]> = new Map();
/** Updates handled by the subscription service */
@@ -146,8 +146,8 @@ export class Control extends lib.Link {
emitAccountUpdate() {
for (let handler of this.accountUpdateHandlers) {
handler({
name: this.accountName,
roles: this.accountRoles,
name: this.accountName!,
roles: this.accountRoles!,
});
}
}