Fix req.is return type

This commit is contained in:
Dave Wasmer
2017-09-12 17:59:21 -06:00
committed by GitHub
parent 046478a6dd
commit 460cf62646

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"