Skip to content

Commit 3828662

Browse files
committed
Merge pull request DefinitelyTyped#4443 from elisee/patch-4
express: Request.host has been deprecated, use .hostname instead
2 parents ed6baae + 16c6bbf commit 3828662

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

express/express.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,11 @@ declare module "express" {
349349
/**
350350
* Parse the "Host" header field hostname.
351351
*/
352+
hostname: string;
353+
354+
/**
355+
* @deprecated Use hostname instead.
356+
*/
352357
host: string;
353358

354359
/**

0 commit comments

Comments
 (0)