title: Extend EventEmitter and call emit
body: <p>I tried this in TypeScript:</p>
  <pre class="lang-js prettyprint-override"><code>import events from 'events'
  import EventEmitter from 'events'
  
  class MyEmitter extends EventEmitter {
    condition: boolean
    emit() {
      if (this.condition) {
        return events.EventEmitter.prototype.emit.apply(this, arguments)
      }
    }
  }
  
  const myEmitter = new MyEmitter()
  myEmitter.emit('something')
  </code></pre>
  <p>This results in <code>Expected 0 arguments, but got 1.ts(2554)</code> in the last line (when calling <code>emit('something')</code>.</p>
  <p>How do I deal with this?</p>