chore: tsify browser-window (#24326)

* chore: tsify browser-window

* fix focus

* also tsify top-level-window
This commit is contained in:
Jeremy Rose 2020-06-28 18:22:55 -07:00 committed by GitHub
parent 1c49e4e376
commit 80e5007c47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 227 additions and 194 deletions

View file

@ -19,21 +19,6 @@ declare namespace Electron {
interface Session {
destroy(): void;
}
// Experimental views API
class TopLevelWindow {
constructor(args: {show: boolean})
setContentView(view: View): void
}
class WebContentsView {
constructor(options: BrowserWindowConstructorOptions)
}
namespace Main {
class TopLevelWindow extends Electron.TopLevelWindow {}
class View extends Electron.View {}
class WebContentsView extends Electron.WebContentsView {}
}
}
declare module 'dbus-native';