Created
June 4, 2018 19:02
-
-
Save thedillonb/79f3d8a538f4a56d4e42b8078e061659 to your computer and use it in GitHub Desktop.
Server Sent Events TypeScript Definition
This file contains hidden or 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
declare module 'server-sent-events' { | |
import express = require('express'); | |
interface Middleware extends express.RequestHandler {} | |
function MiddlewareFn(): Middleware; | |
export = MiddlewareFn; | |
} | |
declare namespace Express { | |
export interface ISSEResponse { | |
sse(value: string): void; | |
} | |
export interface Response extends ISSEResponse {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment