message: refactor(build/emitter): simplify tryEmitTypedEventHandlerForInterface
diff: @@ -1068,20 +1068,18 @@ export function emitWebIdl(
  const hasEventListener = iNameToEhList[i.name]?.length;
  const ehParentCount = iNameToEhParents[i.name]?.length;
  + let target: Browser.Interface;
  if (hasEventListener || ehParentCount > 1) {
  - emitTypedEventHandler(fPrefix, addOrRemove, i, optionsType);
  - return true;
  + target = i;
  } else if (ehParentCount === 1) {
  - emitTypedEventHandler(
  - fPrefix,
  - addOrRemove,
  - iNameToEhParents[i.name][0],
  - optionsType
  - );
  - return true;
  - }
  + target = iNameToEhParents[i.name][0];
  + } else {
  return false;
  }
  +
  + emitTypedEventHandler(fPrefix, addOrRemove, target, optionsType);
  + return true;
  + }
  }
  function emitConstructorSignature(i: Browser.Interface) {
  