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
|
@ -2,7 +2,7 @@ import { EventEmitter } from 'events';
|
|||
import { MessagePortMain } from '@electron/internal/browser/message-port-main';
|
||||
const { createParentPort } = process._linkedBinding('electron_utility_parent_port');
|
||||
|
||||
export class ParentPort extends EventEmitter {
|
||||
export class ParentPort extends EventEmitter implements Electron.ParentPort {
|
||||
#port: ParentPort;
|
||||
constructor () {
|
||||
super();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue