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