Skip to content

Commit

Permalink
Upgrade to electron v29.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tong committed Feb 22, 2024
1 parent 65a4b53 commit 6cfd85b
Show file tree
Hide file tree
Showing 115 changed files with 394 additions and 394 deletions.
14 changes: 7 additions & 7 deletions demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"start": "electron ."
},
"devDependencies": {
"electron": "v29.0.0"
"electron": "v29.0.1"
}
}
548 changes: 274 additions & 274 deletions electron-api.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"description": "Type definitions for the electron framework",
"releasenote": "See CHANGELOG",
"version": "29.0.0",
"version": "29.0.1",
"contributors": [
"tong",
"fponticelli"
Expand Down
2 changes: 1 addition & 1 deletion src/electron/Clipboard.hx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ package electron;
@:optional
var bookmark : String; }, ?type:String):Void;
}
@:enum abstract ClipboardEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract ClipboardEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/CrashReporter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@ package electron;
**/
static function getParameters():Record;
}
@:enum abstract CrashReporterEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract CrashReporterEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/NativeImage.hx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,6 @@ package electron;
@:optional
var dataURL : String; }):Void;
}
@:enum abstract NativeImageEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract NativeImageEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/ParentPort.hx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package electron;
**/
static function postMessage(message:Any):Void;
}
@:enum abstract ParentPortEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract ParentPortEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when the process receives a message. Messages received on this port will be queued up until a handler is registered for this event.
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/Process.hx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ package electron;
**/
static function setFdLimit(maxDescriptors:Int):Void;
}
@:enum abstract ProcessEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract ProcessEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when Electron has loaded its internal initialization script and is beginning to load the web page or the main script.
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/Shell.hx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ package electron;
**/
static function readShortcutLink(shortcutPath:String):electron.ShortcutDetails;
}
@:enum abstract ShellEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract ShellEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/UtilityProcess.hx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ package electron;
**/
function kill():Bool;
}
@:enum abstract UtilityProcessEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract UtilityProcessEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted once the child process has spawned successfully.
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/App.hx
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ package electron.main;
static function setSecureKeyboardEntryEnabled(enabled:Bool):Void;
static function on<T:(haxe.Constraints.Function)>(eventType:Dynamic, callback:T):Void;
}
@:enum abstract AppEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract AppEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when the application has finished basic startup. On Windows and Linux, the `will-finish-launching` event is the same as the `ready` event; on macOS, this event represents the `applicationWillFinishLaunching` notification of `NSApplication`.
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/AutoUpdater.hx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ package electron.main;
**/
static function quitAndInstall():Void;
}
@:enum abstract AutoUpdaterEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract AutoUpdaterEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when there is an error while updating.
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/BrowserView.hx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ package electron.main;
**/
function setBackgroundColor(color:String):Void;
}
@:enum abstract BrowserViewEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract BrowserViewEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/BrowserWindow.hx
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ package electron.main;
@:optional
var height : Int; }):Void;
}
@:enum abstract BrowserWindowEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract BrowserWindowEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when the document changed its title, calling `event.preventDefault()` will prevent the native window's title from changing. `explicitSet` is false when title is synthesized from file URL.
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/ClientRequest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ package electron.main;
**/
function getUploadProgress():Any;
}
@:enum abstract ClientRequestEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract ClientRequestEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
var response : electron.main.ClientRequestEvent<Void -> Void> = "response";
/**
Emitted when an authenticating proxy is asking for user credentials.
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/CommandLine.hx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ package electron.main;
**/
function removeSwitch(switch_:String):Void;
}
@:enum abstract CommandLineEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract CommandLineEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/ContentTracing.hx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ package electron.main;
**/
static function getTraceBufferUsage():js.lib.Promise<Any>;
}
@:enum abstract ContentTracingEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract ContentTracingEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/Cookies.hx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ package electron.main;
**/
function flushStore():js.lib.Promise<Any>;
}
@:enum abstract CookiesEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract CookiesEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when a cookie is changed because it was added, edited, removed, or expired.
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/Debugger.hx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package electron.main;
**/
function sendCommand(method:String, ?commandParams:Any, ?sessionId:String):js.lib.Promise<Any>;
}
@:enum abstract DebuggerEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract DebuggerEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when the debugging session is terminated. This happens either when `webContents` is closed or devtools is invoked for the attached `webContents`.
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/DesktopCapturer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ package electron.main;
@:optional
var fetchWindowIcons : Bool; }):js.lib.Promise<Any>;
}
@:enum abstract DesktopCapturerEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract DesktopCapturerEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/Dialog.hx
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,6 @@ package electron.main;
**/
var message : String; }):js.lib.Promise<Any>;
}
@:enum abstract DialogEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract DialogEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/Dock.hx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ package electron.main;
**/
function setIcon(image:haxe.extern.EitherType<electron.NativeImage, String>):Void;
}
@:enum abstract DockEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract DockEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/DownloadItem.hx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ package electron.main;
**/
function getStartTime():Float;
}
@:enum abstract DownloadItemEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract DownloadItemEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when the download has been updated and is not done.
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/GlobalShortcut.hx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ package electron.main;
**/
static function unregisterAll():Void;
}
@:enum abstract GlobalShortcutEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract GlobalShortcutEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/InAppPurchase.hx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ package electron.main;
static function finishTransactionByDate(date:String):Void;
static function on<T:(haxe.Constraints.Function)>(eventType:Dynamic, callback:T):Void;
}
@:enum abstract InAppPurchaseEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract InAppPurchaseEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
var transactions_updated : electron.main.InAppPurchaseEvent<Void -> Void> = "transactions-updated";
}
2 changes: 1 addition & 1 deletion src/electron/main/IncomingMessage.hx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ package electron.main;
**/
var rawHeaders : Array<String>;
}
@:enum abstract IncomingMessageEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract IncomingMessageEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
The `data` event is the usual method of transferring response data into applicative code.
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/IpcMain.hx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ package electron.main;
**/
static function removeHandler(channel:String):Void;
}
@:enum abstract IpcMainEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract IpcMainEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/Menu.hx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ package electron.main;
**/
function insert(pos:Int, menuItem:electron.main.MenuItem):Void;
}
@:enum abstract MenuEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract MenuEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when `menu.popup()` is called.
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/MenuItem.hx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,6 @@ package electron.main;
@:optional
var afterGroupContaining : Array<String>; }):Void;
}
@:enum abstract MenuItemEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract MenuItemEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/MessageChannelMain.hx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ package electron.main;
**/
var port2 : electron.main.MessagePortMain;
}
@:enum abstract MessageChannelMainEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract MessageChannelMainEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/MessagePortMain.hx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package electron.main;
**/
function close():Void;
}
@:enum abstract MessagePortMainEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract MessagePortMainEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when a MessagePortMain object receives a message.
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/NativeTheme.hx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ package electron.main;
**/
static var inForcedColorsMode : Bool;
}
@:enum abstract NativeThemeEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract NativeThemeEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when something in the underlying NativeTheme has changed. This normally means that either the value of `shouldUseDarkColors`, `shouldUseHighContrastColors` or `shouldUseInvertedColorScheme` has changed. You will have to check them to determine which one has changed.
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/Net.hx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ package electron.main;
@:optional
var secureDnsPolicy : String; }):js.lib.Promise<Any>;
}
@:enum abstract NetEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract NetEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/NetLog.hx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ package electron.main;
**/
static function stopLogging():js.lib.Promise<Any>;
}
@:enum abstract NetLogEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract NetLogEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/Notification.hx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ package electron.main;
**/
function close():Void;
}
@:enum abstract NotificationEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract NotificationEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when the notification is shown to the user. Note that this event can be fired multiple times as a notification can be shown multiple times through the `show()` method.
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/PowerMonitor.hx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ package electron.main;
**/
static function isOnBatteryPower():Bool;
}
@:enum abstract PowerMonitorEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract PowerMonitorEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when the system is suspending.
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/PowerSaveBlocker.hx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ package electron.main;
**/
static function isStarted(id:Int):Bool;
}
@:enum abstract PowerSaveBlockerEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract PowerSaveBlockerEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/Protocol.hx
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,6 @@ package electron.main;
**/
static function isProtocolIntercepted(scheme:String):Bool;
}
@:enum abstract ProtocolEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract ProtocolEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/PushNotifications.hx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package electron.main;
**/
static function unregisterForAPNSNotifications():Void;
}
@:enum abstract PushNotificationsEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract PushNotificationsEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when the app receives a remote notification while running. See: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428430-application?language=objc
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/SafeStorage.hx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ package electron.main;
**/
static function getSelectedStorageBackend():String;
}
@:enum abstract SafeStorageEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract SafeStorageEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
2 changes: 1 addition & 1 deletion src/electron/main/Screen.hx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ package electron.main;
**/
static function dipToScreenRect(window:haxe.extern.EitherType<electron.main.BrowserWindow, Dynamic>, rect:electron.Rectangle):electron.Rectangle;
}
@:enum abstract ScreenEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract ScreenEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when `newDisplay` has been added.
**/
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/ServiceWorkers.hx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ package electron.main;
**/
function getFromVersionID(versionId:Float):electron.ServiceWorkerInfo;
}
@:enum abstract ServiceWorkersEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
enum abstract ServiceWorkersEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {
/**
Emitted when a service worker logs something to the console.
**/
Expand Down
Loading

0 comments on commit 6cfd85b

Please sign in to comment.