mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Fix header() return type
req.header() can return an array of strings
This commit is contained in:
+2
-2
@@ -197,9 +197,9 @@ interface Request extends http.IncomingMessage, Express.Request {
|
||||
*
|
||||
* @param name
|
||||
*/
|
||||
get(name: string): string | undefined;
|
||||
get(name: string): string | string[] | undefined;
|
||||
|
||||
header(name: string): string | undefined;
|
||||
header(name: string): string | string[] | undefined;
|
||||
|
||||
/**
|
||||
* Check if the given `type(s)` is acceptable, returning
|
||||
|
||||
Reference in New Issue
Block a user