Created
September 1, 2018 14:48
-
-
Save dimlucas/2a59093e3d855c2a5c46cd4e75de80ac to your computer and use it in GitHub Desktop.
ExpressJS Request Handler type definition
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
export interface RequestHandler { | |
// tslint:disable-next-line callable-types (This is extended from and can't extend from a type alias in ts<2.2 | |
(req: Request, res: Response, next: NextFunction): any; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment