mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 05:20:24 +08:00
github-electron: add missing remote.getCurrentWebContents()
API document is here: https://github.com/atom/electron/blob/master/docs/api/remote.md#remotegetcurrentwebcontents
This commit is contained in:
4
github-electron/github-electron.d.ts
vendored
4
github-electron/github-electron.d.ts
vendored
@@ -1541,6 +1541,10 @@ declare module Electron {
|
||||
* @returns The BrowserWindow object which this web page belongs to.
|
||||
*/
|
||||
getCurrentWindow(): BrowserWindow;
|
||||
/**
|
||||
* @returns The WebContents object of this web page.
|
||||
*/
|
||||
getCurrentWebContents(): WebContents;
|
||||
/**
|
||||
* @returns The global variable of name (e.g. global[name]) in the main process.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user