Improve strict typing
This commit is contained in:
parent
cb4e444a60
commit
b79912e390
2 changed files with 10 additions and 8 deletions
|
@ -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[]>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue