@types/node
Advanced tools
Comparing version 16.18.106 to 16.18.107
@@ -13,3 +13,5 @@ /** | ||
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, | ||
Response extends typeof http.ServerResponse = typeof http.ServerResponse, | ||
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse< | ||
InstanceType<Request> | ||
>, | ||
> = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions<Request, Response>; | ||
@@ -38,3 +40,5 @@ type RequestOptions = | ||
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, | ||
Response extends typeof http.ServerResponse = typeof http.ServerResponse, | ||
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse< | ||
InstanceType<Request> | ||
>, | ||
> extends http.Server<Request, Response> {} | ||
@@ -47,3 +51,5 @@ /** | ||
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, | ||
Response extends typeof http.ServerResponse = typeof http.ServerResponse, | ||
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse< | ||
InstanceType<Request> | ||
>, | ||
> extends tls.Server { | ||
@@ -115,3 +121,3 @@ constructor(requestListener?: http.RequestListener<Request, Response>); | ||
req: InstanceType<Request>, | ||
res: InstanceType<Response> & { req: InstanceType<Request> }, | ||
res: InstanceType<Response>, | ||
): boolean; | ||
@@ -121,3 +127,3 @@ emit( | ||
req: InstanceType<Request>, | ||
res: InstanceType<Response> & { req: InstanceType<Request> }, | ||
res: InstanceType<Response>, | ||
): boolean; | ||
@@ -129,3 +135,3 @@ emit(event: "clientError", err: Error, socket: Duplex): boolean; | ||
req: InstanceType<Request>, | ||
res: InstanceType<Response> & { req: InstanceType<Request> }, | ||
res: InstanceType<Response>, | ||
): boolean; | ||
@@ -305,7 +311,11 @@ emit(event: "upgrade", req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean; | ||
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, | ||
Response extends typeof http.ServerResponse = typeof http.ServerResponse, | ||
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse< | ||
InstanceType<Request> | ||
>, | ||
>(requestListener?: http.RequestListener<Request, Response>): Server<Request, Response>; | ||
function createServer< | ||
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, | ||
Response extends typeof http.ServerResponse = typeof http.ServerResponse, | ||
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse< | ||
InstanceType<Request> | ||
>, | ||
>( | ||
@@ -312,0 +322,0 @@ options: ServerOptions<Request, Response>, |
{ | ||
"name": "@types/node", | ||
"version": "16.18.106", | ||
"version": "16.18.107", | ||
"description": "TypeScript definitions for node", | ||
@@ -213,4 +213,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "eefbc030a82672d0a58c0ef369e7bc503e92d6ff5124e24b8b49696e86460e6a", | ||
"typesPublisherContentHash": "2e43ad1a49e4e03c340b7cddb756224a8aa3814562090f931c92dd3647a13e23", | ||
"typeScriptVersion": "4.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 26 Aug 2024 10:08:35 GMT | ||
* Last updated: Wed, 04 Sep 2024 00:28:08 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1812572
40649