Merge pull request #19703 from davewasmer/patch-4

[express / express-serve-static-core] Fix req.is() return type
This commit is contained in:
Arthur Ozga
2017-09-14 12:52:37 -07:00
committed by GitHub

View File

@@ -351,7 +351,7 @@ interface Request extends http.IncomingMessage, Express.Request {
*
* @param type
*/
is(type: string): boolean;
is(type: string): string | false;
/**
* Return the protocol string "http" or "https"