Last active
July 26, 2017 21:54
-
-
Save chl03ks/32b626c3b0d9c3cb4db22a6bfeef4a80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Callback { (data: any): void; } | |
declare class EventSource { | |
onmessage: Callback; | |
addEventListener(event: string, cb: Callback): void; | |
constructor(name: string); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment