mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
Merge pull request #19703 from davewasmer/patch-4
[express / express-serve-static-core] Fix req.is() return type
This commit is contained in:
2
types/express-serve-static-core/index.d.ts
vendored
2
types/express-serve-static-core/index.d.ts
vendored
@@ -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