Skip to content

Instantly share code, notes, and snippets.

@dimlucas
Created September 1, 2018 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimlucas/2a59093e3d855c2a5c46cd4e75de80ac to your computer and use it in GitHub Desktop.
Save dimlucas/2a59093e3d855c2a5c46cd4e75de80ac to your computer and use it in GitHub Desktop.
ExpressJS Request Handler type definition
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