Angular2 WebStorm TS2304:can't find name 'EventSource'
<p>I use WebStorm for Angular2/TypeScript development.</p>

<pre><code>const eventSource = new EventSource('/interval-sse-observable');
</code></pre>

<p>But my problem is that the "EventSource" object is <strong>unrecognized</strong> (red underline, can't find name 'EventSource').</p>

<p>How to resolve it ?</p>