@types/node 16.18.56 → 16.18.58

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.
node v16.18/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 02 Oct 2023 20:06:22 GMT
11
+ * Last updated: Fri, 06 Oct 2023 23:05:45 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
node v16.18/events.d.ts CHANGED
@@ -366,7 +366,6 @@ declare module "events" {
366
366
  global {
367
367
  namespace NodeJS {
368
368
  interface EventEmitter {
369
-
370
369
  [EventEmitter.captureRejectionSymbol]?(error: Error, event: string, ...args: any[]): void;
371
370
  /**
372
371
  * Alias for `emitter.on(eventName, listener)`.
node v16.18/http.d.ts CHANGED
@@ -114,32 +114,32 @@ declare module "http" {
114
114
  type OutgoingHttpHeader = number | string | string[];
115
115
  interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
116
116
  accept?: string | string[] | undefined;
117
- 'accept-charset'?: string | string[] | undefined;
118
- 'accept-encoding'?: string | string[] | undefined;
119
- 'accept-language'?: string | string[] | undefined;
120
- 'accept-ranges'?: string | undefined;
121
- 'access-control-allow-credentials'?: string | undefined;
122
- 'access-control-allow-headers'?: string | undefined;
123
- 'access-control-allow-methods'?: string | undefined;
124
- 'access-control-allow-origin'?: string | undefined;
125
- 'access-control-expose-headers'?: string | undefined;
126
- 'access-control-max-age'?: string | undefined;
127
- 'access-control-request-headers'?: string | undefined;
128
- 'access-control-request-method'?: string | undefined;
117
+ "accept-charset"?: string | string[] | undefined;
118
+ "accept-encoding"?: string | string[] | undefined;
119
+ "accept-language"?: string | string[] | undefined;
120
+ "accept-ranges"?: string | undefined;
121
+ "access-control-allow-credentials"?: string | undefined;
122
+ "access-control-allow-headers"?: string | undefined;
123
+ "access-control-allow-methods"?: string | undefined;
124
+ "access-control-allow-origin"?: string | undefined;
125
+ "access-control-expose-headers"?: string | undefined;
126
+ "access-control-max-age"?: string | undefined;
127
+ "access-control-request-headers"?: string | undefined;
128
+ "access-control-request-method"?: string | undefined;
129
129
  age?: string | undefined;
130
130
  allow?: string | undefined;
131
131
  authorization?: string | undefined;
132
- 'cache-control'?: string | undefined;
133
- 'cdn-cache-control'?: string | undefined;
132
+ "cache-control"?: string | undefined;
133
+ "cdn-cache-control"?: string | undefined;
134
134
  connection?: string | string[] | undefined;
135
- 'content-disposition'?: string | undefined;
136
- 'content-encoding'?: string | undefined;
137
- 'content-language'?: string | undefined;
138
- 'content-length'?: string | number | undefined;
139
- 'content-location'?: string | undefined;
140
- 'content-range'?: string | undefined;
141
- 'content-security-policy'?: string | undefined;
142
- 'content-security-policy-report-only'?: string | undefined;
135
+ "content-disposition"?: string | undefined;
136
+ "content-encoding"?: string | undefined;
137
+ "content-language"?: string | undefined;
138
+ "content-length"?: string | number | undefined;
139
+ "content-location"?: string | undefined;
140
+ "content-range"?: string | undefined;
141
+ "content-security-policy"?: string | undefined;
142
+ "content-security-policy-report-only"?: string | undefined;
143
143
  cookie?: string | string[] | undefined;
144
144
  dav?: string | string[] | undefined;
145
145
  dnt?: string | undefined;
@@ -150,48 +150,48 @@ declare module "http" {
150
150
  forwarded?: string | undefined;
151
151
  from?: string | undefined;
152
152
  host?: string | undefined;
153
- 'if-match'?: string | undefined;
154
- 'if-modified-since'?: string | undefined;
155
- 'if-none-match'?: string | undefined;
156
- 'if-range'?: string | undefined;
157
- 'if-unmodified-since'?: string | undefined;
158
- 'last-modified'?: string | undefined;
153
+ "if-match"?: string | undefined;
154
+ "if-modified-since"?: string | undefined;
155
+ "if-none-match"?: string | undefined;
156
+ "if-range"?: string | undefined;
157
+ "if-unmodified-since"?: string | undefined;
158
+ "last-modified"?: string | undefined;
159
159
  link?: string | string[] | undefined;
160
160
  location?: string | undefined;
161
- 'max-forwards'?: string | undefined;
161
+ "max-forwards"?: string | undefined;
162
162
  origin?: string | undefined;
163
163
  prgama?: string | string[] | undefined;
164
- 'proxy-authenticate'?: string | string[] | undefined;
165
- 'proxy-authorization'?: string | undefined;
166
- 'public-key-pins'?: string | undefined;
167
- 'public-key-pins-report-only'?: string | undefined;
164
+ "proxy-authenticate"?: string | string[] | undefined;
165
+ "proxy-authorization"?: string | undefined;
166
+ "public-key-pins"?: string | undefined;
167
+ "public-key-pins-report-only"?: string | undefined;
168
168
  range?: string | undefined;
169
169
  referer?: string | undefined;
170
- 'referrer-policy'?: string | undefined;
170
+ "referrer-policy"?: string | undefined;
171
171
  refresh?: string | undefined;
172
- 'retry-after'?: string | undefined;
173
- 'sec-websocket-accept'?: string | undefined;
174
- 'sec-websocket-extensions'?: string | string[] | undefined;
175
- 'sec-websocket-key'?: string | undefined;
176
- 'sec-websocket-protocol'?: string | string[] | undefined;
177
- 'sec-websocket-version'?: string | undefined;
172
+ "retry-after"?: string | undefined;
173
+ "sec-websocket-accept"?: string | undefined;
174
+ "sec-websocket-extensions"?: string | string[] | undefined;
175
+ "sec-websocket-key"?: string | undefined;
176
+ "sec-websocket-protocol"?: string | string[] | undefined;
177
+ "sec-websocket-version"?: string | undefined;
178
178
  server?: string | undefined;
179
- 'set-cookie'?: string | string[] | undefined;
180
- 'strict-transport-security'?: string | undefined;
179
+ "set-cookie"?: string | string[] | undefined;
180
+ "strict-transport-security"?: string | undefined;
181
181
  te?: string | undefined;
182
182
  trailer?: string | undefined;
183
- 'transfer-encoding'?: string | undefined;
184
- 'user-agent'?: string | undefined;
183
+ "transfer-encoding"?: string | undefined;
184
+ "user-agent"?: string | undefined;
185
185
  upgrade?: string | undefined;
186
- 'upgrade-insecure-requests'?: string | undefined;
186
+ "upgrade-insecure-requests"?: string | undefined;
187
187
  vary?: string | undefined;
188
188
  via?: string | string[] | undefined;
189
189
  warning?: string | undefined;
190
- 'www-authenticate'?: string | string[] | undefined;
191
- 'x-content-type-options'?: string | undefined;
192
- 'x-dns-prefetch-control'?: string | undefined;
193
- 'x-frame-options'?: string | undefined;
194
- 'x-xss-protection'?: string | undefined;
190
+ "www-authenticate"?: string | string[] | undefined;
191
+ "x-content-type-options"?: string | undefined;
192
+ "x-dns-prefetch-control"?: string | undefined;
193
+ "x-frame-options"?: string | undefined;
194
+ "x-xss-protection"?: string | undefined;
195
195
  }
196
196
  interface ClientRequestArgs {
197
197
  signal?: AbortSignal | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.18.56",
3
+ "version": "16.18.58",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -227,6 +227,6 @@
227
227
  },
228
228
  "scripts": {},
229
229
  "dependencies": {},
230
- "typesPublisherContentHash": "2c49c7d6d7eb484328038463ac5d197cc05a37149928fec4bbec5fe6cc298a73",
230
+ "typesPublisherContentHash": "743a3d44a58a5c7b02bff3efacfe04e47f09c5f7ad3cec96df57b00f48677261",
231
231
  "typeScriptVersion": "4.5"
232
232
  }
@@ -1,11 +1,11 @@
1
1
  declare module "stream/consumers" {
2
2
  import { Readable } from "node:stream";
3
3
  import { Blob as NodeBlob } from "node:buffer";
4
- function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<Buffer>;
5
- function text(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<string>;
6
- function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<ArrayBuffer>;
7
- function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<NodeBlob>;
8
- function json(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<unknown>;
4
+ function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<Buffer>;
5
+ function text(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<string>;
6
+ function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<ArrayBuffer>;
7
+ function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<NodeBlob>;
8
+ function json(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<unknown>;
9
9
  }
10
10
  declare module "node:stream/consumers" {
11
11
  export * from "stream/consumers";
@@ -113,32 +113,32 @@ declare module "http" {
113
113
  type OutgoingHttpHeader = number | string | string[];
114
114
  interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
115
115
  accept?: string | string[] | undefined;
116
- 'accept-charset'?: string | string[] | undefined;
117
- 'accept-encoding'?: string | string[] | undefined;
118
- 'accept-language'?: string | string[] | undefined;
119
- 'accept-ranges'?: string | undefined;
120
- 'access-control-allow-credentials'?: string | undefined;
121
- 'access-control-allow-headers'?: string | undefined;
122
- 'access-control-allow-methods'?: string | undefined;
123
- 'access-control-allow-origin'?: string | undefined;
124
- 'access-control-expose-headers'?: string | undefined;
125
- 'access-control-max-age'?: string | undefined;
126
- 'access-control-request-headers'?: string | undefined;
127
- 'access-control-request-method'?: string | undefined;
116
+ "accept-charset"?: string | string[] | undefined;
117
+ "accept-encoding"?: string | string[] | undefined;
118
+ "accept-language"?: string | string[] | undefined;
119
+ "accept-ranges"?: string | undefined;
120
+ "access-control-allow-credentials"?: string | undefined;
121
+ "access-control-allow-headers"?: string | undefined;
122
+ "access-control-allow-methods"?: string | undefined;
123
+ "access-control-allow-origin"?: string | undefined;
124
+ "access-control-expose-headers"?: string | undefined;
125
+ "access-control-max-age"?: string | undefined;
126
+ "access-control-request-headers"?: string | undefined;
127
+ "access-control-request-method"?: string | undefined;
128
128
  age?: string | undefined;
129
129
  allow?: string | undefined;
130
130
  authorization?: string | undefined;
131
- 'cache-control'?: string | undefined;
132
- 'cdn-cache-control'?: string | undefined;
131
+ "cache-control"?: string | undefined;
132
+ "cdn-cache-control"?: string | undefined;
133
133
  connection?: string | string[] | undefined;
134
- 'content-disposition'?: string | undefined;
135
- 'content-encoding'?: string | undefined;
136
- 'content-language'?: string | undefined;
137
- 'content-length'?: string | number | undefined;
138
- 'content-location'?: string | undefined;
139
- 'content-range'?: string | undefined;
140
- 'content-security-policy'?: string | undefined;
141
- 'content-security-policy-report-only'?: string | undefined;
134
+ "content-disposition"?: string | undefined;
135
+ "content-encoding"?: string | undefined;
136
+ "content-language"?: string | undefined;
137
+ "content-length"?: string | number | undefined;
138
+ "content-location"?: string | undefined;
139
+ "content-range"?: string | undefined;
140
+ "content-security-policy"?: string | undefined;
141
+ "content-security-policy-report-only"?: string | undefined;
142
142
  cookie?: string | string[] | undefined;
143
143
  dav?: string | string[] | undefined;
144
144
  dnt?: string | undefined;
@@ -149,48 +149,48 @@ declare module "http" {
149
149
  forwarded?: string | undefined;
150
150
  from?: string | undefined;
151
151
  host?: string | undefined;
152
- 'if-match'?: string | undefined;
153
- 'if-modified-since'?: string | undefined;
154
- 'if-none-match'?: string | undefined;
155
- 'if-range'?: string | undefined;
156
- 'if-unmodified-since'?: string | undefined;
157
- 'last-modified'?: string | undefined;
152
+ "if-match"?: string | undefined;
153
+ "if-modified-since"?: string | undefined;
154
+ "if-none-match"?: string | undefined;
155
+ "if-range"?: string | undefined;
156
+ "if-unmodified-since"?: string | undefined;
157
+ "last-modified"?: string | undefined;
158
158
  link?: string | string[] | undefined;
159
159
  location?: string | undefined;
160
- 'max-forwards'?: string | undefined;
160
+ "max-forwards"?: string | undefined;
161
161
  origin?: string | undefined;
162
162
  prgama?: string | string[] | undefined;
163
- 'proxy-authenticate'?: string | string[] | undefined;
164
- 'proxy-authorization'?: string | undefined;
165
- 'public-key-pins'?: string | undefined;
166
- 'public-key-pins-report-only'?: string | undefined;
163
+ "proxy-authenticate"?: string | string[] | undefined;
164
+ "proxy-authorization"?: string | undefined;
165
+ "public-key-pins"?: string | undefined;
166
+ "public-key-pins-report-only"?: string | undefined;
167
167
  range?: string | undefined;
168
168
  referer?: string | undefined;
169
- 'referrer-policy'?: string | undefined;
169
+ "referrer-policy"?: string | undefined;
170
170
  refresh?: string | undefined;
171
- 'retry-after'?: string | undefined;
172
- 'sec-websocket-accept'?: string | undefined;
173
- 'sec-websocket-extensions'?: string | string[] | undefined;
174
- 'sec-websocket-key'?: string | undefined;
175
- 'sec-websocket-protocol'?: string | string[] | undefined;
176
- 'sec-websocket-version'?: string | undefined;
171
+ "retry-after"?: string | undefined;
172
+ "sec-websocket-accept"?: string | undefined;
173
+ "sec-websocket-extensions"?: string | string[] | undefined;
174
+ "sec-websocket-key"?: string | undefined;
175
+ "sec-websocket-protocol"?: string | string[] | undefined;
176
+ "sec-websocket-version"?: string | undefined;
177
177
  server?: string | undefined;
178
- 'set-cookie'?: string | string[] | undefined;
179
- 'strict-transport-security'?: string | undefined;
178
+ "set-cookie"?: string | string[] | undefined;
179
+ "strict-transport-security"?: string | undefined;
180
180
  te?: string | undefined;
181
181
  trailer?: string | undefined;
182
- 'transfer-encoding'?: string | undefined;
183
- 'user-agent'?: string | undefined;
182
+ "transfer-encoding"?: string | undefined;
183
+ "user-agent"?: string | undefined;
184
184
  upgrade?: string | undefined;
185
- 'upgrade-insecure-requests'?: string | undefined;
185
+ "upgrade-insecure-requests"?: string | undefined;
186
186
  vary?: string | undefined;
187
187
  via?: string | string[] | undefined;
188
188
  warning?: string | undefined;
189
- 'www-authenticate'?: string | string[] | undefined;
190
- 'x-content-type-options'?: string | undefined;
191
- 'x-dns-prefetch-control'?: string | undefined;
192
- 'x-frame-options'?: string | undefined;
193
- 'x-xss-protection'?: string | undefined;
189
+ "www-authenticate"?: string | string[] | undefined;
190
+ "x-content-type-options"?: string | undefined;
191
+ "x-dns-prefetch-control"?: string | undefined;
192
+ "x-frame-options"?: string | undefined;
193
+ "x-xss-protection"?: string | undefined;
194
194
  }
195
195
  interface ClientRequestArgs {
196
196
  signal?: AbortSignal | undefined;
@@ -1,11 +1,11 @@
1
1
  declare module "stream/consumers" {
2
2
  import { Readable } from "node:stream";
3
3
  import { Blob as NodeBlob } from "node:buffer";
4
- function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<Buffer>;
5
- function text(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<string>;
6
- function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<ArrayBuffer>;
7
- function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<NodeBlob>;
8
- function json(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<unknown>;
4
+ function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<Buffer>;
5
+ function text(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<string>;
6
+ function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<ArrayBuffer>;
7
+ function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<NodeBlob>;
8
+ function json(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<unknown>;
9
9
  }
10
10
  declare module "node:stream/consumers" {
11
11
  export * from "stream/consumers";