This commit is contained in:
Eugene Pankov 2020-03-01 17:07:11 +01:00
parent e4b7693685
commit 0d65fe348b
2 changed files with 3 additions and 3 deletions

View file

@ -58,7 +58,7 @@ export class Application {
}
}
async send (event: string, ...args): void {
async send (event: string, ...args): Promise<void> {
if (!this.hasWindows()) {
await this.newWindow()
}
@ -97,7 +97,7 @@ export class Application {
}
}
hasWindows (): bool {
hasWindows (): boolean {
return !!this.windows.length
}

View file

@ -155,7 +155,7 @@ export class Window {
this.window.webContents.send(event, ...args)
}
isDestroyed (): void {
isDestroyed (): boolean {
return !this.window || this.window.isDestroyed()
}