@types/node 18.18.3 → 18.18.5
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 +1 -1
- node v18.18/buffer.d.ts +1 -1
- node v18.18/events.d.ts +0 -2
- node v18.18/http.d.ts +50 -50
- node v18.18/package.json +2 -2
- node v18.18/ts4.8/buffer.d.ts +1 -1
- node v18.18/ts4.8/http.d.ts +50 -50
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:
|
|
11
|
+
* Last updated: Thu, 12 Oct 2023 20:35:02 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/buffer.d.ts
CHANGED
|
@@ -200,7 +200,7 @@ declare module "buffer" {
|
|
|
200
200
|
import { Blob as NodeBlob } from "buffer";
|
|
201
201
|
// This conditional type will be the existing global Blob in a browser, or
|
|
202
202
|
// the copy below in a Node environment.
|
|
203
|
-
type __Blob = typeof globalThis extends { onmessage: any; Blob:
|
|
203
|
+
type __Blob = typeof globalThis extends { onmessage: any; Blob: any } ? {} : NodeBlob;
|
|
204
204
|
global {
|
|
205
205
|
namespace NodeJS {
|
|
206
206
|
export { BufferEncoding };
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
134
|
-
|
|
133
|
+
"cache-control"?: string | undefined;
|
|
134
|
+
"cdn-cache-control"?: string | undefined;
|
|
135
135
|
connection?: string | string[] | undefined;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
162
|
+
"max-forwards"?: string | undefined;
|
|
163
163
|
origin?: string | undefined;
|
|
164
164
|
prgama?: string | string[] | undefined;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
-
|
|
171
|
+
"referrer-policy"?: string | undefined;
|
|
172
172
|
refresh?: string | undefined;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
181
|
-
|
|
180
|
+
"set-cookie"?: string | string[] | undefined;
|
|
181
|
+
"strict-transport-security"?: string | undefined;
|
|
182
182
|
te?: string | undefined;
|
|
183
183
|
trailer?: string | undefined;
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
"transfer-encoding"?: string | undefined;
|
|
185
|
+
"user-agent"?: string | undefined;
|
|
186
186
|
upgrade?: string | undefined;
|
|
187
|
-
|
|
187
|
+
"upgrade-insecure-requests"?: string | undefined;
|
|
188
188
|
vary?: string | undefined;
|
|
189
189
|
via?: string | string[] | undefined;
|
|
190
190
|
warning?: string | undefined;
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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;
|
node v18.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.18.
|
|
3
|
+
"version": "18.18.5",
|
|
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": "
|
|
235
|
+
"typesPublisherContentHash": "651f109c34279cb10bbe0bf7c3eb951f8242e1ea97988a130cfb7d139431920a",
|
|
236
236
|
"typeScriptVersion": "4.5"
|
|
237
237
|
}
|
node v18.18/ts4.8/buffer.d.ts
CHANGED
|
@@ -200,7 +200,7 @@ declare module "buffer" {
|
|
|
200
200
|
import { Blob as NodeBlob } from "buffer";
|
|
201
201
|
// This conditional type will be the existing global Blob in a browser, or
|
|
202
202
|
// the copy below in a Node environment.
|
|
203
|
-
type __Blob = typeof globalThis extends { onmessage: any; Blob:
|
|
203
|
+
type __Blob = typeof globalThis extends { onmessage: any; Blob: any } ? {} : NodeBlob;
|
|
204
204
|
global {
|
|
205
205
|
namespace NodeJS {
|
|
206
206
|
export { BufferEncoding };
|
node v18.18/ts4.8/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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
134
|
-
|
|
133
|
+
"cache-control"?: string | undefined;
|
|
134
|
+
"cdn-cache-control"?: string | undefined;
|
|
135
135
|
connection?: string | string[] | undefined;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
162
|
+
"max-forwards"?: string | undefined;
|
|
163
163
|
origin?: string | undefined;
|
|
164
164
|
prgama?: string | string[] | undefined;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
-
|
|
171
|
+
"referrer-policy"?: string | undefined;
|
|
172
172
|
refresh?: string | undefined;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
181
|
-
|
|
180
|
+
"set-cookie"?: string | string[] | undefined;
|
|
181
|
+
"strict-transport-security"?: string | undefined;
|
|
182
182
|
te?: string | undefined;
|
|
183
183
|
trailer?: string | undefined;
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
"transfer-encoding"?: string | undefined;
|
|
185
|
+
"user-agent"?: string | undefined;
|
|
186
186
|
upgrade?: string | undefined;
|
|
187
|
-
|
|
187
|
+
"upgrade-insecure-requests"?: string | undefined;
|
|
188
188
|
vary?: string | undefined;
|
|
189
189
|
via?: string | string[] | undefined;
|
|
190
190
|
warning?: string | undefined;
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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;
|