fix: make sure classes in lib correctly implement Electron interfaces (#40291)
This commit is contained in:
parent
514a9319b9
commit
f66d4c7ee0
12 changed files with 21 additions and 17 deletions
|
@ -1,9 +1,11 @@
|
|||
import { BrowserWindow, Menu, SharingItem, PopupOptions } from 'electron/main';
|
||||
import { EventEmitter } from 'events';
|
||||
|
||||
class ShareMenu {
|
||||
class ShareMenu extends EventEmitter implements Electron.ShareMenu {
|
||||
private menu: Menu;
|
||||
|
||||
constructor (sharingItem: SharingItem) {
|
||||
super();
|
||||
this.menu = new (Menu as any)({ sharingItem });
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue