Property 'value' does not exist on type 'EventTarget' : <p>I am using TypeScript Version 2 for an Angular 2 component code.</p>

<p>I am getting error "Property 'value' does not exist on type 'EventTarget'" for below code, what could be the solution. Thanks!</p>

<p><strong>e.target.value.match(/\S+/g) || []).length</strong></p>

<pre><code>import { Component, EventEmitter, Output } from '@angular/core';

@Component({
selector: 'text-editor',
template: `
&lt;textarea (keyup)="emitWordCount($event)"&gt;&lt;/textarea&gt;
 `
 })
  export class TextEditorComponent {
   @Output() countUpdate = new EventEmitter&lt;number&gt;();

emitWordCount(e: Event) {
    this.countUpdate.emit(
        (e.target.value.match(/\S+/g) || []).length);
}
}
</code></pre>
