mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 23:33:13 +09:00
Fix bad typings left over from the migration
This commit is contained in:
1 parent
7314dc99c8
commit
80e1904175
22 files changed
+93
-117
No files matched your search
@@ -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!,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user