function addEventTypeNameToConfig(_ref, isInteractive) {
  var topEvent = _ref[0],
      event = _ref[1];

  var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  var onEvent = 'on' + capitalizedEvent;

  var type = {
    phasedRegistrationNames: {
      bubbled: onEvent,
      captured: onEvent + 'Capture'
    },
    dependencies: [topEvent],
    isInteractive: isInteractive
  };
  eventTypes$4[event] = type;
  topLevelEventsToDispatchConfig[topEvent] = type;
}
Turns
['abort', ...]
into
eventTypes = {
  'abort': {
    phasedRegistrationNames: {
      bubbled: 'onAbort',
      captured: 'onAbortCapture',
    },
    dependencies: [TOP_ABORT],
  },
  ...
};
topLevelEventsToDispatchConfig = new Map([
  [TOP_ABORT, { sameConfig }],
]);