Improve strict typing

This commit is contained in:
Michael Weimann 2023-01-03 10:16:46 +01:00
parent cb4e444a60
commit b79912e390
No known key found for this signature in database
GPG key ID: 53F535A266BB9584
2 changed files with 10 additions and 8 deletions

View file

@ -107,8 +107,8 @@ export class ModalManager extends TypedEventEmitter<ModalManagerEvent, HandlerMa
modal.hidden = !modal.hidden;
}
public hasDialogs() {
return this.priorityModal || this.staticModal || this.modals.length > 0;
public hasDialogs(): boolean {
return !!(this.priorityModal || this.staticModal || this.modals.length > 0);
}
public createDialog<T extends any[]>(