@types/node 18.18.2 → 18.18.4

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 v18.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/v18.
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`, `structuredClone`
14
14
 
node v18.18/events.d.ts CHANGED
@@ -114,7 +114,6 @@ declare module "events" {
114
114
 
115
115
  [EventEmitter.captureRejectionSymbol]?(error: Error, event: string, ...args: any[]): void;
116
116
 
117
-
118
117
  /**
119
118
  * Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given
120
119
  * event or that is rejected if the `EventEmitter` emits `'error'` while waiting.
@@ -468,7 +467,6 @@ declare module "events" {
468
467
  global {
469
468
  namespace NodeJS {
470
469
  interface EventEmitter {
471
-
472
470
  [EventEmitter.captureRejectionSymbol]?(error: Error, event: string, ...args: any[]): void;
473
471
  /**
474
472
  * Alias for `emitter.on(eventName, listener)`.
node v18.18/http.d.ts CHANGED
@@ -115,32 +115,32 @@ declare module "http" {
115
115
  type OutgoingHttpHeader = number | string | string[];
116
116
  interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
117
117
  accept?: string | string[] | undefined;
118
- 'accept-charset'?: string | string[] | undefined;
119
- 'accept-encoding'?: string | string[] | undefined;
120
- 'accept-language'?: string | string[] | undefined;
121
- 'accept-ranges'?: string | undefined;
122
- 'access-control-allow-credentials'?: string | undefined;
123
- 'access-control-allow-headers'?: string | undefined;
124
- 'access-control-allow-methods'?: string | undefined;
125
- 'access-control-allow-origin'?: string | undefined;
126
- 'access-control-expose-headers'?: string | undefined;
127
- 'access-control-max-age'?: string | undefined;
128
- 'access-control-request-headers'?: string | undefined;
129
- 'access-control-request-method'?: string | undefined;
118
+ "accept-charset"?: string | string[] | undefined;
119
+ "accept-encoding"?: string | string[] | undefined;
120
+ "accept-language"?: string | string[] | undefined;
121
+ "accept-ranges"?: string | undefined;
122
+ "access-control-allow-credentials"?: string | undefined;
123
+ "access-control-allow-headers"?: string | undefined;
124
+ "access-control-allow-methods"?: string | undefined;
125
+ "access-control-allow-origin"?: string | undefined;
126
+ "access-control-expose-headers"?: string | undefined;
127
+ "access-control-max-age"?: string | undefined;
128
+ "access-control-request-headers"?: string | undefined;
129
+ "access-control-request-method"?: string | undefined;
130
130
  age?: string | undefined;
131
131
  allow?: string | undefined;
132
132
  authorization?: string | undefined;
133
- 'cache-control'?: string | undefined;
134
- 'cdn-cache-control'?: string | undefined;
133
+ "cache-control"?: string | undefined;
134
+ "cdn-cache-control"?: string | undefined;
135
135
  connection?: string | string[] | undefined;
136
- 'content-disposition'?: string | undefined;
137
- 'content-encoding'?: string | undefined;
138
- 'content-language'?: string | undefined;
139
- 'content-length'?: string | number | undefined;
140
- 'content-location'?: string | undefined;
141
- 'content-range'?: string | undefined;
142
- 'content-security-policy'?: string | undefined;
143
- 'content-security-policy-report-only'?: string | undefined;
136
+ "content-disposition"?: string | undefined;
137
+ "content-encoding"?: string | undefined;
138
+ "content-language"?: string | undefined;
139
+ "content-length"?: string | number | undefined;
140
+ "content-location"?: string | undefined;
141
+ "content-range"?: string | undefined;
142
+ "content-security-policy"?: string | undefined;
143
+ "content-security-policy-report-only"?: string | undefined;
144
144
  cookie?: string | string[] | undefined;
145
145
  dav?: string | string[] | undefined;
146
146
  dnt?: string | undefined;
@@ -151,48 +151,48 @@ declare module "http" {
151
151
  forwarded?: string | undefined;
152
152
  from?: string | undefined;
153
153
  host?: string | undefined;
154
- 'if-match'?: string | undefined;
155
- 'if-modified-since'?: string | undefined;
156
- 'if-none-match'?: string | undefined;
157
- 'if-range'?: string | undefined;
158
- 'if-unmodified-since'?: string | undefined;
159
- 'last-modified'?: string | undefined;
154
+ "if-match"?: string | undefined;
155
+ "if-modified-since"?: string | undefined;
156
+ "if-none-match"?: string | undefined;
157
+ "if-range"?: string | undefined;
158
+ "if-unmodified-since"?: string | undefined;
159
+ "last-modified"?: string | undefined;
160
160
  link?: string | string[] | undefined;
161
161
  location?: string | undefined;
162
- 'max-forwards'?: string | undefined;
162
+ "max-forwards"?: string | undefined;
163
163
  origin?: string | undefined;
164
164
  prgama?: string | string[] | undefined;
165
- 'proxy-authenticate'?: string | string[] | undefined;
166
- 'proxy-authorization'?: string | undefined;
167
- 'public-key-pins'?: string | undefined;
168
- 'public-key-pins-report-only'?: string | undefined;
165
+ "proxy-authenticate"?: string | string[] | undefined;
166
+ "proxy-authorization"?: string | undefined;
167
+ "public-key-pins"?: string | undefined;
168
+ "public-key-pins-report-only"?: string | undefined;
169
169
  range?: string | undefined;
170
170
  referer?: string | undefined;
171
- 'referrer-policy'?: string | undefined;
171
+ "referrer-policy"?: string | undefined;
172
172
  refresh?: string | undefined;
173
- 'retry-after'?: string | undefined;
174
- 'sec-websocket-accept'?: string | undefined;
175
- 'sec-websocket-extensions'?: string | string[] | undefined;
176
- 'sec-websocket-key'?: string | undefined;
177
- 'sec-websocket-protocol'?: string | string[] | undefined;
178
- 'sec-websocket-version'?: string | undefined;
173
+ "retry-after"?: string | undefined;
174
+ "sec-websocket-accept"?: string | undefined;
175
+ "sec-websocket-extensions"?: string | string[] | undefined;
176
+ "sec-websocket-key"?: string | undefined;
177
+ "sec-websocket-protocol"?: string | string[] | undefined;
178
+ "sec-websocket-version"?: string | undefined;
179
179
  server?: string | undefined;
180
- 'set-cookie'?: string | string[] | undefined;
181
- 'strict-transport-security'?: string | undefined;
180
+ "set-cookie"?: string | string[] | undefined;
181
+ "strict-transport-security"?: string | undefined;
182
182
  te?: string | undefined;
183
183
  trailer?: string | undefined;
184
- 'transfer-encoding'?: string | undefined;
185
- 'user-agent'?: string | undefined;
184
+ "transfer-encoding"?: string | undefined;
185
+ "user-agent"?: string | undefined;
186
186
  upgrade?: string | undefined;
187
- 'upgrade-insecure-requests'?: string | undefined;
187
+ "upgrade-insecure-requests"?: string | undefined;
188
188
  vary?: string | undefined;
189
189
  via?: string | string[] | undefined;
190
190
  warning?: string | undefined;
191
- 'www-authenticate'?: string | string[] | undefined;
192
- 'x-content-type-options'?: string | undefined;
193
- 'x-dns-prefetch-control'?: string | undefined;
194
- 'x-frame-options'?: string | undefined;
195
- 'x-xss-protection'?: string | undefined;
191
+ "www-authenticate"?: string | string[] | undefined;
192
+ "x-content-type-options"?: string | undefined;
193
+ "x-dns-prefetch-control"?: string | undefined;
194
+ "x-frame-options"?: string | undefined;
195
+ "x-xss-protection"?: string | undefined;
196
196
  }
197
197
  interface ClientRequestArgs {
198
198
  _defaultAgent?: Agent | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.18.2",
3
+ "version": "18.18.4",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -232,6 +232,6 @@
232
232
  },
233
233
  "scripts": {},
234
234
  "dependencies": {},
235
- "typesPublisherContentHash": "2b2f05b7fa46e7d87d9302eaa9e49acaf99d87216082180c2504c0aa1b6055b4",
235
+ "typesPublisherContentHash": "c927c7a24f74c17885590d7f67be04651e1c1d856c0ae918f73ccbc396323763",
236
236
  "typeScriptVersion": "4.5"
237
237
  }
@@ -1,11 +1,11 @@
1
1
  declare module "stream/consumers" {
2
2
  import { Blob as NodeBlob } from "node:buffer";
3
3
  import { Readable } from "node:stream";
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";
@@ -115,32 +115,32 @@ declare module "http" {
115
115
  type OutgoingHttpHeader = number | string | string[];
116
116
  interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
117
117
  accept?: string | string[] | undefined;
118
- 'accept-charset'?: string | string[] | undefined;
119
- 'accept-encoding'?: string | string[] | undefined;
120
- 'accept-language'?: string | string[] | undefined;
121
- 'accept-ranges'?: string | undefined;
122
- 'access-control-allow-credentials'?: string | undefined;
123
- 'access-control-allow-headers'?: string | undefined;
124
- 'access-control-allow-methods'?: string | undefined;
125
- 'access-control-allow-origin'?: string | undefined;
126
- 'access-control-expose-headers'?: string | undefined;
127
- 'access-control-max-age'?: string | undefined;
128
- 'access-control-request-headers'?: string | undefined;
129
- 'access-control-request-method'?: string | undefined;
118
+ "accept-charset"?: string | string[] | undefined;
119
+ "accept-encoding"?: string | string[] | undefined;
120
+ "accept-language"?: string | string[] | undefined;
121
+ "accept-ranges"?: string | undefined;
122
+ "access-control-allow-credentials"?: string | undefined;
123
+ "access-control-allow-headers"?: string | undefined;
124
+ "access-control-allow-methods"?: string | undefined;
125
+ "access-control-allow-origin"?: string | undefined;
126
+ "access-control-expose-headers"?: string | undefined;
127
+ "access-control-max-age"?: string | undefined;
128
+ "access-control-request-headers"?: string | undefined;
129
+ "access-control-request-method"?: string | undefined;
130
130
  age?: string | undefined;
131
131
  allow?: string | undefined;
132
132
  authorization?: string | undefined;
133
- 'cache-control'?: string | undefined;
134
- 'cdn-cache-control'?: string | undefined;
133
+ "cache-control"?: string | undefined;
134
+ "cdn-cache-control"?: string | undefined;
135
135
  connection?: string | string[] | undefined;
136
- 'content-disposition'?: string | undefined;
137
- 'content-encoding'?: string | undefined;
138
- 'content-language'?: string | undefined;
139
- 'content-length'?: string | number | undefined;
140
- 'content-location'?: string | undefined;
141
- 'content-range'?: string | undefined;
142
- 'content-security-policy'?: string | undefined;
143
- 'content-security-policy-report-only'?: string | undefined;
136
+ "content-disposition"?: string | undefined;
137
+ "content-encoding"?: string | undefined;
138
+ "content-language"?: string | undefined;
139
+ "content-length"?: string | number | undefined;
140
+ "content-location"?: string | undefined;
141
+ "content-range"?: string | undefined;
142
+ "content-security-policy"?: string | undefined;
143
+ "content-security-policy-report-only"?: string | undefined;
144
144
  cookie?: string | string[] | undefined;
145
145
  dav?: string | string[] | undefined;
146
146
  dnt?: string | undefined;
@@ -151,48 +151,48 @@ declare module "http" {
151
151
  forwarded?: string | undefined;
152
152
  from?: string | undefined;
153
153
  host?: string | undefined;
154
- 'if-match'?: string | undefined;
155
- 'if-modified-since'?: string | undefined;
156
- 'if-none-match'?: string | undefined;
157
- 'if-range'?: string | undefined;
158
- 'if-unmodified-since'?: string | undefined;
159
- 'last-modified'?: string | undefined;
154
+ "if-match"?: string | undefined;
155
+ "if-modified-since"?: string | undefined;
156
+ "if-none-match"?: string | undefined;
157
+ "if-range"?: string | undefined;
158
+ "if-unmodified-since"?: string | undefined;
159
+ "last-modified"?: string | undefined;
160
160
  link?: string | string[] | undefined;
161
161
  location?: string | undefined;
162
- 'max-forwards'?: string | undefined;
162
+ "max-forwards"?: string | undefined;
163
163
  origin?: string | undefined;
164
164
  prgama?: string | string[] | undefined;
165
- 'proxy-authenticate'?: string | string[] | undefined;
166
- 'proxy-authorization'?: string | undefined;
167
- 'public-key-pins'?: string | undefined;
168
- 'public-key-pins-report-only'?: string | undefined;
165
+ "proxy-authenticate"?: string | string[] | undefined;
166
+ "proxy-authorization"?: string | undefined;
167
+ "public-key-pins"?: string | undefined;
168
+ "public-key-pins-report-only"?: string | undefined;
169
169
  range?: string | undefined;
170
170
  referer?: string | undefined;
171
- 'referrer-policy'?: string | undefined;
171
+ "referrer-policy"?: string | undefined;
172
172
  refresh?: string | undefined;
173
- 'retry-after'?: string | undefined;
174
- 'sec-websocket-accept'?: string | undefined;
175
- 'sec-websocket-extensions'?: string | string[] | undefined;
176
- 'sec-websocket-key'?: string | undefined;
177
- 'sec-websocket-protocol'?: string | string[] | undefined;
178
- 'sec-websocket-version'?: string | undefined;
173
+ "retry-after"?: string | undefined;
174
+ "sec-websocket-accept"?: string | undefined;
175
+ "sec-websocket-extensions"?: string | string[] | undefined;
176
+ "sec-websocket-key"?: string | undefined;
177
+ "sec-websocket-protocol"?: string | string[] | undefined;
178
+ "sec-websocket-version"?: string | undefined;
179
179
  server?: string | undefined;
180
- 'set-cookie'?: string | string[] | undefined;
181
- 'strict-transport-security'?: string | undefined;
180
+ "set-cookie"?: string | string[] | undefined;
181
+ "strict-transport-security"?: string | undefined;
182
182
  te?: string | undefined;
183
183
  trailer?: string | undefined;
184
- 'transfer-encoding'?: string | undefined;
185
- 'user-agent'?: string | undefined;
184
+ "transfer-encoding"?: string | undefined;
185
+ "user-agent"?: string | undefined;
186
186
  upgrade?: string | undefined;
187
- 'upgrade-insecure-requests'?: string | undefined;
187
+ "upgrade-insecure-requests"?: string | undefined;
188
188
  vary?: string | undefined;
189
189
  via?: string | string[] | undefined;
190
190
  warning?: string | undefined;
191
- 'www-authenticate'?: string | string[] | undefined;
192
- 'x-content-type-options'?: string | undefined;
193
- 'x-dns-prefetch-control'?: string | undefined;
194
- 'x-frame-options'?: string | undefined;
195
- 'x-xss-protection'?: string | undefined;
191
+ "www-authenticate"?: string | string[] | undefined;
192
+ "x-content-type-options"?: string | undefined;
193
+ "x-dns-prefetch-control"?: string | undefined;
194
+ "x-frame-options"?: string | undefined;
195
+ "x-xss-protection"?: string | undefined;
196
196
  }
197
197
  interface ClientRequestArgs {
198
198
  _defaultAgent?: Agent | undefined;
@@ -1,11 +1,11 @@
1
1
  declare module "stream/consumers" {
2
2
  import { Blob as NodeBlob } from "node:buffer";
3
3
  import { Readable } from "node:stream";
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";