cdk-ecr-deployment 3.0.111 → 3.0.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +2 -2
- package/lib/index.js +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +16 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +34 -29
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +17 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +7 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +238 -101
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +17 -23
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +270 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +11 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +19 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +17 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +34 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +86 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +7 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +44 -44
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +12 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +13 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +22 -22
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +16 -9
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +34 -29
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +17 -1
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +7 -7
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +238 -101
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +17 -23
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +270 -0
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +11 -15
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +19 -19
- package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +17 -17
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +34 -15
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +86 -3
- package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +7 -7
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +44 -44
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +12 -12
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +13 -13
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +22 -22
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +16 -9
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +34 -29
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +17 -1
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +7 -7
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +238 -101
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +17 -23
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +270 -0
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +11 -15
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +19 -19
- package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +17 -17
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +34 -15
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +86 -3
- package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +7 -7
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +44 -44
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +12 -12
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +13 -13
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +22 -22
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +8 -8
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `dns.promises` API provides an alternative set of asynchronous DNS methods
|
|
3
3
|
* that return `Promise` objects rather than using callbacks. The API is accessible
|
|
4
|
-
* via `
|
|
4
|
+
* via `import { promises as dnsPromises } from 'node:dns'` or `import dnsPromises from 'node:dns/promises'`.
|
|
5
5
|
* @since v10.6.0
|
|
6
6
|
*/
|
|
7
7
|
declare module "dns/promises" {
|
|
@@ -60,7 +60,7 @@ declare module "dns/promises" {
|
|
|
60
60
|
* Example usage:
|
|
61
61
|
*
|
|
62
62
|
* ```js
|
|
63
|
-
*
|
|
63
|
+
* import dns from 'node:dns';
|
|
64
64
|
* const dnsPromises = dns.promises;
|
|
65
65
|
* const options = {
|
|
66
66
|
* family: 6,
|
|
@@ -96,7 +96,7 @@ declare module "dns/promises" {
|
|
|
96
96
|
* On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code.
|
|
97
97
|
*
|
|
98
98
|
* ```js
|
|
99
|
-
*
|
|
99
|
+
* import dnsPromises from 'node:dns';
|
|
100
100
|
* dnsPromises.lookupService('127.0.0.1', 22).then((result) => {
|
|
101
101
|
* console.log(result.hostname, result.service);
|
|
102
102
|
* // Prints: localhost ssh
|
|
@@ -394,8 +394,8 @@ declare module "dns/promises" {
|
|
|
394
394
|
* other resolvers:
|
|
395
395
|
*
|
|
396
396
|
* ```js
|
|
397
|
-
*
|
|
398
|
-
* const resolver = new Resolver();
|
|
397
|
+
* import { promises } from 'node:dns';
|
|
398
|
+
* const resolver = new promises.Resolver();
|
|
399
399
|
* resolver.setServers(['4.4.4.4']);
|
|
400
400
|
*
|
|
401
401
|
* // This request will use the server at 4.4.4.4, independent of global settings.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* system do, use {@link lookup}.
|
|
10
10
|
*
|
|
11
11
|
* ```js
|
|
12
|
-
*
|
|
12
|
+
* import dns from 'node:dns';
|
|
13
13
|
*
|
|
14
14
|
* dns.lookup('example.org', (err, address, family) => {
|
|
15
15
|
* console.log('address: %j family: IPv%s', address, family);
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* DNS queries, bypassing other name-resolution facilities.
|
|
24
24
|
*
|
|
25
25
|
* ```js
|
|
26
|
-
*
|
|
26
|
+
* import dns from 'node:dns';
|
|
27
27
|
*
|
|
28
28
|
* dns.resolve4('archive.org', (err, addresses) => {
|
|
29
29
|
* if (err) throw err;
|
|
@@ -139,7 +139,7 @@ declare module "dns" {
|
|
|
139
139
|
* Example usage:
|
|
140
140
|
*
|
|
141
141
|
* ```js
|
|
142
|
-
*
|
|
142
|
+
* import dns from 'node:dns';
|
|
143
143
|
* const options = {
|
|
144
144
|
* family: 6,
|
|
145
145
|
* hints: dns.ADDRCONFIG | dns.V4MAPPED,
|
|
@@ -199,7 +199,7 @@ declare module "dns" {
|
|
|
199
199
|
* where `err.code` is the error code.
|
|
200
200
|
*
|
|
201
201
|
* ```js
|
|
202
|
-
*
|
|
202
|
+
* import dns from 'node:dns';
|
|
203
203
|
* dns.lookupService('127.0.0.1', 22, (err, hostname, service) => {
|
|
204
204
|
* console.log(hostname, service);
|
|
205
205
|
* // Prints: localhost ssh
|
|
@@ -787,7 +787,7 @@ declare module "dns" {
|
|
|
787
787
|
* other resolvers:
|
|
788
788
|
*
|
|
789
789
|
* ```js
|
|
790
|
-
*
|
|
790
|
+
* import { Resolver } from 'node:dns';
|
|
791
791
|
* const resolver = new Resolver();
|
|
792
792
|
* resolver.setServers(['4.4.4.4']);
|
|
793
793
|
*
|
|
@@ -63,8 +63,8 @@ declare module "domain" {
|
|
|
63
63
|
* This is the most basic way to use a domain.
|
|
64
64
|
*
|
|
65
65
|
* ```js
|
|
66
|
-
*
|
|
67
|
-
*
|
|
66
|
+
* import domain from 'node:domain';
|
|
67
|
+
* import fs from 'node:fs';
|
|
68
68
|
* const d = domain.create();
|
|
69
69
|
* d.on('error', (er) => {
|
|
70
70
|
* console.error('Caught error!', er);
|
|
@@ -932,7 +932,7 @@ declare module "fs/promises" {
|
|
|
932
932
|
* The `fsPromises.mkdtemp()` method will append the six randomly selected
|
|
933
933
|
* characters directly to the `prefix` string. For instance, given a directory `/tmp`, if the intention is to create a temporary directory _within_ `/tmp`, the `prefix` must end with a trailing
|
|
934
934
|
* platform-specific path separator
|
|
935
|
-
* (`
|
|
935
|
+
* (`import { sep } from 'node:path'`).
|
|
936
936
|
* @since v10.0.0
|
|
937
937
|
* @return Fulfills with a string containing the file system path of the newly created temporary directory.
|
|
938
938
|
*/
|
|
@@ -1174,7 +1174,7 @@ declare module "fs/promises" {
|
|
|
1174
1174
|
* Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory.
|
|
1175
1175
|
*
|
|
1176
1176
|
* ```js
|
|
1177
|
-
*
|
|
1177
|
+
* import { watch } from 'node:fs/promises';
|
|
1178
1178
|
*
|
|
1179
1179
|
* const ac = new AbortController();
|
|
1180
1180
|
* const { signal } = ac;
|
|
@@ -1900,7 +1900,7 @@ declare module "fs" {
|
|
|
1900
1900
|
* The `fs.mkdtemp()` method will append the six randomly selected characters
|
|
1901
1901
|
* directly to the `prefix` string. For instance, given a directory `/tmp`, if the
|
|
1902
1902
|
* intention is to create a temporary directory _within_`/tmp`, the `prefix`must end with a trailing platform-specific path separator
|
|
1903
|
-
* (`
|
|
1903
|
+
* (`import { sep } from 'node:path'`).
|
|
1904
1904
|
*
|
|
1905
1905
|
* ```js
|
|
1906
1906
|
* import { tmpdir } from 'node:os';
|
|
@@ -3156,7 +3156,7 @@ declare module "fs" {
|
|
|
3156
3156
|
* stat object:
|
|
3157
3157
|
*
|
|
3158
3158
|
* ```js
|
|
3159
|
-
* import { watchFile } from 'fs';
|
|
3159
|
+
* import { watchFile } from 'node:fs';
|
|
3160
3160
|
*
|
|
3161
3161
|
* watchFile('message.text', (curr, prev) => {
|
|
3162
3162
|
* console.log(`the current mtime is: ${curr.mtime}`);
|
|
@@ -168,10 +168,26 @@ declare global {
|
|
|
168
168
|
// Same as module.exports
|
|
169
169
|
var exports: any;
|
|
170
170
|
|
|
171
|
+
interface GCFunction {
|
|
172
|
+
(options: {
|
|
173
|
+
execution?: "sync";
|
|
174
|
+
flavor?: "regular" | "last-resort";
|
|
175
|
+
type?: "major-snapshot" | "major" | "minor";
|
|
176
|
+
filename?: string;
|
|
177
|
+
}): void;
|
|
178
|
+
(options: {
|
|
179
|
+
execution: "async";
|
|
180
|
+
flavor?: "regular" | "last-resort";
|
|
181
|
+
type?: "major-snapshot" | "major" | "minor";
|
|
182
|
+
filename?: string;
|
|
183
|
+
}): Promise<void>;
|
|
184
|
+
(options?: boolean): void;
|
|
185
|
+
}
|
|
186
|
+
|
|
171
187
|
/**
|
|
172
188
|
* Only available if `--expose-gc` is passed to the process.
|
|
173
189
|
*/
|
|
174
|
-
var gc: undefined |
|
|
190
|
+
var gc: undefined | GCFunction;
|
|
175
191
|
|
|
176
192
|
// #region borrowed
|
|
177
193
|
// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* To use the HTTP server and client one must `
|
|
2
|
+
* To use the HTTP server and client one must import the `node:http` module.
|
|
3
3
|
*
|
|
4
4
|
* The HTTP interfaces in Node.js are designed to support many features
|
|
5
5
|
* of the protocol which have been traditionally difficult to use.
|
|
@@ -231,7 +231,7 @@ declare module "http" {
|
|
|
231
231
|
}
|
|
232
232
|
interface ServerOptions<
|
|
233
233
|
Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
234
|
-
Response extends typeof ServerResponse = typeof ServerResponse,
|
|
234
|
+
Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
|
|
235
235
|
> {
|
|
236
236
|
/**
|
|
237
237
|
* Specifies the `IncomingMessage` class to be used. Useful for extending the original `IncomingMessage`.
|
|
@@ -315,14 +315,14 @@ declare module "http" {
|
|
|
315
315
|
}
|
|
316
316
|
type RequestListener<
|
|
317
317
|
Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
318
|
-
Response extends typeof ServerResponse = typeof ServerResponse,
|
|
318
|
+
Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
|
|
319
319
|
> = (req: InstanceType<Request>, res: InstanceType<Response> & { req: InstanceType<Request> }) => void;
|
|
320
320
|
/**
|
|
321
321
|
* @since v0.1.17
|
|
322
322
|
*/
|
|
323
323
|
class Server<
|
|
324
324
|
Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
325
|
-
Response extends typeof ServerResponse = typeof ServerResponse,
|
|
325
|
+
Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
|
|
326
326
|
> extends NetServer {
|
|
327
327
|
constructor(requestListener?: RequestListener<Request, Response>);
|
|
328
328
|
constructor(options: ServerOptions<Request, Response>, requestListener?: RequestListener<Request, Response>);
|
|
@@ -1447,7 +1447,7 @@ declare module "http" {
|
|
|
1447
1447
|
* To configure any of them, a custom {@link Agent} instance must be created.
|
|
1448
1448
|
*
|
|
1449
1449
|
* ```js
|
|
1450
|
-
*
|
|
1450
|
+
* import http from 'node:http';
|
|
1451
1451
|
* const keepAliveAgent = new http.Agent({ keepAlive: true });
|
|
1452
1452
|
* options.agent = keepAliveAgent;
|
|
1453
1453
|
* http.request(options, onResponseCallback)
|
|
@@ -1553,11 +1553,11 @@ declare module "http" {
|
|
|
1553
1553
|
*/
|
|
1554
1554
|
function createServer<
|
|
1555
1555
|
Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
1556
|
-
Response extends typeof ServerResponse = typeof ServerResponse,
|
|
1556
|
+
Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
|
|
1557
1557
|
>(requestListener?: RequestListener<Request, Response>): Server<Request, Response>;
|
|
1558
1558
|
function createServer<
|
|
1559
1559
|
Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
1560
|
-
Response extends typeof ServerResponse = typeof ServerResponse,
|
|
1560
|
+
Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
|
|
1561
1561
|
>(
|
|
1562
1562
|
options: ServerOptions<Request, Response>,
|
|
1563
1563
|
requestListener?: RequestListener<Request, Response>,
|