From 460cf6264603b16bfdcac16a20ec64b133bb04f3 Mon Sep 17 00:00:00 2001 From: Dave Wasmer Date: Tue, 12 Sep 2017 17:59:21 -0600 Subject: [PATCH] Fix req.is return type --- types/express-serve-static-core/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/express-serve-static-core/index.d.ts b/types/express-serve-static-core/index.d.ts index cb7de5faea..00597aa17c 100644 --- a/types/express-serve-static-core/index.d.ts +++ b/types/express-serve-static-core/index.d.ts @@ -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"