electron/lib/browser/api/auto-updater/auto-updater-native.ts
2020-07-01 12:27:12 -07:00

8 lines
300 B
TypeScript

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;