chore: tsify auto-updater (#24328)

This commit is contained in:
Jeremy Rose 2020-07-01 12:27:12 -07:00 committed by GitHub
parent 4c449fbc75
commit 354ea00f17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 49 additions and 53 deletions

View 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;