Add type definition to EventSource constructor.

This change helps out users who compile their code with the --noImplicitAny flag.
Merge pull request #1 from arknave/patch-1

Add type definition to EventSource constructor.