forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub-electron.d.ts
75 lines (68 loc) · 2.85 KB
/
github-electron.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Type definitions for Electron v0.37.2
// Project: http://electron.atom.io/
// Definitions by: jedmao <https://github.com/jedmao/>, rhysd <https://rhysd.github.io>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
/// <reference path="github-electron.app.d.ts" />
/// <reference path="github-electron.auto-updater.d.ts" />
/// <reference path="github-electron.browser-window.d.ts" />
/// <reference path="github-electron.clipboard.d.ts" />
/// <reference path="github-electron.content-tracing.d.ts" />
/// <reference path="github-electron.crash-reporter.d.ts" />
/// <reference path="github-electron.desktop-capturer.d.ts" />
/// <reference path="github-electron.dialog.d.ts" />
/// <reference path="github-electron.dom.d.ts" />
/// <reference path="github-electron.event-emitter.d.ts" />
/// <reference path="github-electron.global-shortcut.d.ts" />
/// <reference path="github-electron.ipc-main.d.ts" />
/// <reference path="github-electron.ipc-renderer.d.ts" />
/// <reference path="github-electron.menu.d.ts" />
/// <reference path="github-electron.menu-item.d.ts" />
/// <reference path="github-electron.native-image.d.ts" />
/// <reference path="github-electron.power-monitor.d.ts" />
/// <reference path="github-electron.power-save-blocker.d.ts" />
/// <reference path="github-electron.protocol.d.ts" />
/// <reference path="github-electron.remote.d.ts" />
/// <reference path="github-electron.screen.d.ts" />
/// <reference path="github-electron.session.d.ts" />
/// <reference path="github-electron.shell.d.ts" />
/// <reference path="github-electron.tray.d.ts" />
/// <reference path="github-electron.web-contents.d.ts" />
/// <reference path="github-electron.web-frame.d.ts" />
declare namespace Electron {
interface CommonElectron {
clipboard: Electron.Clipboard;
crashReporter: Electron.CrashReporter;
nativeImage: typeof Electron.NativeImage;
shell: Electron.Shell;
app: Electron.App;
autoUpdater: Electron.AutoUpdater;
BrowserWindow: typeof Electron.BrowserWindow;
contentTracing: Electron.ContentTracing;
dialog: Electron.Dialog;
ipcMain: Electron.IpcMain;
globalShortcut: Electron.GlobalShortcut;
Menu: typeof Electron.Menu;
MenuItem: typeof Electron.MenuItem;
powerMonitor: Electron.PowerMonitor;
powerSaveBlocker: Electron.PowerSaveBlocker;
protocol: Electron.Protocol;
screen: Electron.Screen;
session: typeof Electron.Session;
Tray: typeof Electron.Tray;
hideInternalModules(): void;
}
interface ElectronMainAndRenderer extends CommonElectron {
desktopCapturer: Electron.DesktopCapturer;
ipcRenderer: Electron.IpcRenderer;
remote: Electron.Remote;
webFrame: Electron.WebFrame;
}
}
declare module 'electron' {
var electron: Electron.ElectronMainAndRenderer;
export = electron;
}
interface NodeRequireFunction {
(moduleName: 'electron'): Electron.ElectronMainAndRenderer;
}