chore: tsify auto-updater (#24328)
This commit is contained in:
parent
4c449fbc75
commit
354ea00f17
6 changed files with 49 additions and 53 deletions
8
lib/browser/api/auto-updater/auto-updater-native.ts
Normal file
8
lib/browser/api/auto-updater/auto-updater-native.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { EventEmitter } from 'events';
|
||||
const { autoUpdater, AutoUpdater } = process._linkedBinding('electron_browser_auto_updater');
|
||||
|
||||
// AutoUpdater is an EventEmitter.
|
||||
Object.setPrototypeOf(AutoUpdater.prototype, EventEmitter.prototype);
|
||||
EventEmitter.call(autoUpdater);
|
||||
|
||||
export default autoUpdater;
|
Loading…
Add table
Add a link
Reference in a new issue