mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Fix req.is return type
This commit is contained in:
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user