We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 251eaa1 commit 363bb30Copy full SHA for 363bb30
base/base_header.ts
@@ -4,3 +4,5 @@
4
// Definitions: https://github.com/electron/electron-typescript-definitions
5
6
/// <reference types="node" />
7
+
8
+type GlobalEvent = Event;
base/base_inner.ts
@@ -18,10 +18,10 @@
18
19
}
20
21
- interface Event {
22
- preventDefault: Function;
+ interface Event extends GlobalEvent {
+ preventDefault: () => void;
23
sender: WebContents;
24
- returnValue?: any;
+ returnValue: any;
25
ctrlkey?: boolean;
26
metaKey?: boolean;
27
shiftKey?: boolean;
0 commit comments