@types/node 18.18.0 → 18.18.1

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, 25 Sep 2023 20:06:16 GMT
11
+ * Last updated: Fri, 29 Sep 2023 15:35:13 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/http.d.ts CHANGED
@@ -113,7 +113,87 @@ declare module "http" {
113
113
  }
114
114
  // outgoing headers allows numbers (as they are converted internally to strings)
115
115
  type OutgoingHttpHeader = number | string | string[];
116
- interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {}
116
+ interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
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;
130
+ age?: string | undefined;
131
+ allow?: string | undefined;
132
+ authorization?: string | undefined;
133
+ 'cache-control'?: string | undefined;
134
+ 'cdn-cache-control'?: string | undefined;
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;
144
+ cookie?: string | string[] | undefined;
145
+ dav?: string | string[] | undefined;
146
+ dnt?: string | undefined;
147
+ date?: string | undefined;
148
+ etag?: string | undefined;
149
+ expect?: string | undefined;
150
+ expires?: string | undefined;
151
+ forwarded?: string | undefined;
152
+ from?: string | undefined;
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;
160
+ link?: string | string[] | undefined;
161
+ location?: string | undefined;
162
+ 'max-forwards'?: string | undefined;
163
+ origin?: string | undefined;
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;
169
+ range?: string | undefined;
170
+ referer?: string | undefined;
171
+ 'referrer-policy'?: string | undefined;
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;
179
+ server?: string | undefined;
180
+ 'set-cookie'?: string | string[] | undefined;
181
+ 'strict-transport-security'?: string | undefined;
182
+ te?: string | undefined;
183
+ trailer?: string | undefined;
184
+ 'transfer-encoding'?: string | undefined;
185
+ 'user-agent'?: string | undefined;
186
+ upgrade?: string | undefined;
187
+ 'upgrade-insecure-requests'?: string | undefined;
188
+ vary?: string | undefined;
189
+ via?: string | string[] | undefined;
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;
196
+ }
117
197
  interface ClientRequestArgs {
118
198
  _defaultAgent?: Agent | undefined;
119
199
  agent?: Agent | boolean | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.18.0",
3
+ "version": "18.18.1",
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": "ad40956229a9b57a72cb2428d13118c8eaeaa1a507d4cd1b29dc0bb540447648",
235
+ "typesPublisherContentHash": "2df4cc21e413fcb509e38b2d33ac7418ed566e68a48f2a14ab489fab6c982023",
236
236
  "typeScriptVersion": "4.5"
237
237
  }
@@ -113,7 +113,87 @@ declare module "http" {
113
113
  }
114
114
  // outgoing headers allows numbers (as they are converted internally to strings)
115
115
  type OutgoingHttpHeader = number | string | string[];
116
- interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {}
116
+ interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
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;
130
+ age?: string | undefined;
131
+ allow?: string | undefined;
132
+ authorization?: string | undefined;
133
+ 'cache-control'?: string | undefined;
134
+ 'cdn-cache-control'?: string | undefined;
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;
144
+ cookie?: string | string[] | undefined;
145
+ dav?: string | string[] | undefined;
146
+ dnt?: string | undefined;
147
+ date?: string | undefined;
148
+ etag?: string | undefined;
149
+ expect?: string | undefined;
150
+ expires?: string | undefined;
151
+ forwarded?: string | undefined;
152
+ from?: string | undefined;
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;
160
+ link?: string | string[] | undefined;
161
+ location?: string | undefined;
162
+ 'max-forwards'?: string | undefined;
163
+ origin?: string | undefined;
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;
169
+ range?: string | undefined;
170
+ referer?: string | undefined;
171
+ 'referrer-policy'?: string | undefined;
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;
179
+ server?: string | undefined;
180
+ 'set-cookie'?: string | string[] | undefined;
181
+ 'strict-transport-security'?: string | undefined;
182
+ te?: string | undefined;
183
+ trailer?: string | undefined;
184
+ 'transfer-encoding'?: string | undefined;
185
+ 'user-agent'?: string | undefined;
186
+ upgrade?: string | undefined;
187
+ 'upgrade-insecure-requests'?: string | undefined;
188
+ vary?: string | undefined;
189
+ via?: string | string[] | undefined;
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;
196
+ }
117
197
  interface ClientRequestArgs {
118
198
  _defaultAgent?: Agent | undefined;
119
199
  agent?: Agent | boolean | undefined;