Merge pull request #21643 from donaldpipowitch/patch-13

make express compatible with --strictFunctionTypes - fixes #21371
This commit is contained in:
Benjamin Lichtman
2017-11-21 09:59:10 -08:00
committed by GitHub
+1 -1
View File
@@ -820,7 +820,7 @@ export interface Application extends IRouter, Express.Application {
* Express instance itself is a request handler, which could be invoked without
* third argument.
*/
(req: Request, res: Response): any;
(req: Request | http.IncomingMessage, res: Response | http.ServerResponse): any;
/**
* Initialize the server.