chore: tsify browser-window (#24326)
* chore: tsify browser-window * fix focus * also tsify top-level-window
This commit is contained in:
parent
1c49e4e376
commit
80e5007c47
8 changed files with 227 additions and 194 deletions
15
spec-main/ambient.d.ts
vendored
15
spec-main/ambient.d.ts
vendored
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue