mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 06:29:40 +08:00
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