'use strict';

const getGmEvent = (events, emit) => {
  return Object.keys(events).reduce((acc, key) => {
    return {
      ...acc,
      [key]: (...args) => {
        return emit(key, ...args);
      }
    };
  }, {});
};

exports.getGmEvent = getGmEvent;
//# sourceMappingURL=event.js.map
