mirror of
https://github.com/Eugeny/tabby.git
synced 2025-03-19 15:30:40 +08:00
lint
This commit is contained in:
parent
e4b7693685
commit
0d65fe348b
@ -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
|
||||
}
|
||||
|
||||
|
@ -155,7 +155,7 @@ export class Window {
|
||||
this.window.webContents.send(event, ...args)
|
||||
}
|
||||
|
||||
isDestroyed (): void {
|
||||
isDestroyed (): boolean {
|
||||
return !this.window || this.window.isDestroyed()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user