"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createEventHandler = void 0;
function createEventHandler(emitter, event, fn) {
    const handler = (...args) => fn(...args);
    emitter.addListener(event, handler);
    return () => emitter.removeListener(event, handler);
}
exports.createEventHandler = createEventHandler;
//# sourceMappingURL=events.js.map