@types/node 18.19.54 → 18.19.56
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.19/README.md +1 -1
- node v18.19/compatibility/disposable.d.ts +14 -0
- node v18.19/compatibility/index.d.ts +9 -0
- node v18.19/compatibility/indexable.d.ts +20 -0
- node v18.19/compatibility/iterators.d.ts +20 -0
- node v18.19/events.d.ts +2 -2
- node v18.19/fs.d.ts +1 -1
- node v18.19/globals.d.ts +15 -48
- node v18.19/index.d.ts +8 -10
- node v18.19/net.d.ts +6 -0
- node v18.19/package.json +2 -2
- node v18.19/readline.d.ts +1 -1
- node v18.19/stream/web.d.ts +5 -2
- node v18.19/stream.d.ts +2 -2
- node v18.19/ts5.6/index.d.ts +8 -9
- node v18.19/url.d.ts +7 -4
- node v18.19/util.d.ts +4 -4
- node v18.19/globals.global.d.ts +0 -1
node v18.19/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (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: Wed, 16 Oct 2024 23:36:24 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Polyfills for the explicit resource management types added in TypeScript 5.2.
|
|
2
|
+
|
|
3
|
+
interface SymbolConstructor {
|
|
4
|
+
readonly dispose: unique symbol;
|
|
5
|
+
readonly asyncDispose: unique symbol;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface Disposable {
|
|
9
|
+
[Symbol.dispose](): void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface AsyncDisposable {
|
|
13
|
+
[Symbol.asyncDispose](): PromiseLike<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Declaration files in this directory contain types relating to TypeScript library features
|
|
2
|
+
// that are not included in all TypeScript versions supported by DefinitelyTyped, but
|
|
3
|
+
// which can be made backwards-compatible without needing `typesVersions`.
|
|
4
|
+
// If adding declarations to this directory, please specify which versions of TypeScript require them,
|
|
5
|
+
// so that they can be removed when no longer needed.
|
|
6
|
+
|
|
7
|
+
/// <reference path="disposable.d.ts" />
|
|
8
|
+
/// <reference path="indexable.d.ts" />
|
|
9
|
+
/// <reference path="iterators.d.ts" />
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Polyfill for ES2022's .at() method on string/array prototypes, added to TypeScript in 4.6.
|
|
2
|
+
|
|
3
|
+
interface RelativeIndexable<T> {
|
|
4
|
+
at(index: number): T | undefined;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
interface String extends RelativeIndexable<string> {}
|
|
8
|
+
interface Array<T> extends RelativeIndexable<T> {}
|
|
9
|
+
interface ReadonlyArray<T> extends RelativeIndexable<T> {}
|
|
10
|
+
interface Int8Array extends RelativeIndexable<number> {}
|
|
11
|
+
interface Uint8Array extends RelativeIndexable<number> {}
|
|
12
|
+
interface Uint8ClampedArray extends RelativeIndexable<number> {}
|
|
13
|
+
interface Int16Array extends RelativeIndexable<number> {}
|
|
14
|
+
interface Uint16Array extends RelativeIndexable<number> {}
|
|
15
|
+
interface Int32Array extends RelativeIndexable<number> {}
|
|
16
|
+
interface Uint32Array extends RelativeIndexable<number> {}
|
|
17
|
+
interface Float32Array extends RelativeIndexable<number> {}
|
|
18
|
+
interface Float64Array extends RelativeIndexable<number> {}
|
|
19
|
+
interface BigInt64Array extends RelativeIndexable<bigint> {}
|
|
20
|
+
interface BigUint64Array extends RelativeIndexable<bigint> {}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Backwards-compatible iterator interfaces, augmented with iterator helper methods by lib.esnext.iterator in TypeScript 5.6.
|
|
2
|
+
// The IterableIterator interface does not contain these methods, which creates assignability issues in places where IteratorObjects
|
|
3
|
+
// are expected (eg. DOM-compatible APIs) if lib.esnext.iterator is loaded.
|
|
4
|
+
// Also ensures that iterators returned by the Node API, which inherit from Iterator.prototype, correctly expose the iterator helper methods
|
|
5
|
+
// if lib.esnext.iterator is loaded.
|
|
6
|
+
|
|
7
|
+
// Placeholders for TS <5.6
|
|
8
|
+
interface IteratorObject<T, TReturn, TNext> {}
|
|
9
|
+
interface AsyncIteratorObject<T, TReturn, TNext> {}
|
|
10
|
+
|
|
11
|
+
declare namespace NodeJS {
|
|
12
|
+
// Populate iterator methods for TS <5.6
|
|
13
|
+
interface Iterator<T, TReturn, TNext> extends globalThis.Iterator<T, TReturn, TNext> {}
|
|
14
|
+
interface AsyncIterator<T, TReturn, TNext> extends globalThis.AsyncIterator<T, TReturn, TNext> {}
|
|
15
|
+
|
|
16
|
+
// Polyfill for TS 5.6's instrinsic BuiltinIteratorReturn type, required for DOM-compatible iterators
|
|
17
|
+
type BuiltinIteratorReturn = ReturnType<any[][typeof Symbol.iterator]> extends
|
|
18
|
+
globalThis.Iterator<any, infer TReturn> ? TReturn
|
|
19
|
+
: any;
|
|
20
|
+
}
|
node v18.19/events.d.ts
CHANGED
|
@@ -280,7 +280,7 @@ declare module "events" {
|
|
|
280
280
|
emitter: NodeJS.EventEmitter,
|
|
281
281
|
eventName: string,
|
|
282
282
|
options?: StaticEventEmitterOptions,
|
|
283
|
-
):
|
|
283
|
+
): NodeJS.AsyncIterator<any>;
|
|
284
284
|
/**
|
|
285
285
|
* A class method that returns the number of listeners for the given `eventName`registered on the given `emitter`.
|
|
286
286
|
*
|
|
@@ -369,7 +369,7 @@ declare module "events" {
|
|
|
369
369
|
* ```
|
|
370
370
|
* @since v15.4.0
|
|
371
371
|
* @param n A non-negative number. The maximum number of listeners per `EventTarget` event.
|
|
372
|
-
* @param
|
|
372
|
+
* @param eventTargets Zero or more {EventTarget} or {EventEmitter} instances. If none are specified, `n` is set as the default max for all newly created {EventTarget} and {EventEmitter}
|
|
373
373
|
* objects.
|
|
374
374
|
*/
|
|
375
375
|
static setMaxListeners(n?: number, ...eventTargets: Array<_DOMEventTarget | NodeJS.EventEmitter>): void;
|
node v18.19/fs.d.ts
CHANGED
|
@@ -262,7 +262,7 @@ declare module "fs" {
|
|
|
262
262
|
/**
|
|
263
263
|
* Asynchronously iterates over the directory via `readdir(3)` until all entries have been read.
|
|
264
264
|
*/
|
|
265
|
-
[Symbol.asyncIterator]():
|
|
265
|
+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<Dirent>;
|
|
266
266
|
/**
|
|
267
267
|
* Asynchronously close the directory's underlying resource handle.
|
|
268
268
|
* Subsequent reads will result in errors.
|
node v18.19/globals.d.ts
CHANGED
|
@@ -111,6 +111,8 @@ declare global {
|
|
|
111
111
|
interface RequireResolve extends NodeJS.RequireResolve {}
|
|
112
112
|
interface NodeModule extends NodeJS.Module {}
|
|
113
113
|
|
|
114
|
+
var global: typeof globalThis;
|
|
115
|
+
|
|
114
116
|
var process: NodeJS.Process;
|
|
115
117
|
var console: Console;
|
|
116
118
|
|
|
@@ -182,53 +184,6 @@ declare global {
|
|
|
182
184
|
};
|
|
183
185
|
// #endregion borrowed
|
|
184
186
|
|
|
185
|
-
// #region Disposable
|
|
186
|
-
interface SymbolConstructor {
|
|
187
|
-
/**
|
|
188
|
-
* A method that is used to release resources held by an object. Called by the semantics of the `using` statement.
|
|
189
|
-
*/
|
|
190
|
-
readonly dispose: unique symbol;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.
|
|
194
|
-
*/
|
|
195
|
-
readonly asyncDispose: unique symbol;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
interface Disposable {
|
|
199
|
-
[Symbol.dispose](): void;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
interface AsyncDisposable {
|
|
203
|
-
[Symbol.asyncDispose](): PromiseLike<void>;
|
|
204
|
-
}
|
|
205
|
-
// #endregion Disposable
|
|
206
|
-
|
|
207
|
-
// #region ArrayLike.at()
|
|
208
|
-
interface RelativeIndexable<T> {
|
|
209
|
-
/**
|
|
210
|
-
* Takes an integer value and returns the item at that index,
|
|
211
|
-
* allowing for positive and negative integers.
|
|
212
|
-
* Negative integers count back from the last item in the array.
|
|
213
|
-
*/
|
|
214
|
-
at(index: number): T | undefined;
|
|
215
|
-
}
|
|
216
|
-
interface String extends RelativeIndexable<string> {}
|
|
217
|
-
interface Array<T> extends RelativeIndexable<T> {}
|
|
218
|
-
interface ReadonlyArray<T> extends RelativeIndexable<T> {}
|
|
219
|
-
interface Int8Array extends RelativeIndexable<number> {}
|
|
220
|
-
interface Uint8Array extends RelativeIndexable<number> {}
|
|
221
|
-
interface Uint8ClampedArray extends RelativeIndexable<number> {}
|
|
222
|
-
interface Int16Array extends RelativeIndexable<number> {}
|
|
223
|
-
interface Uint16Array extends RelativeIndexable<number> {}
|
|
224
|
-
interface Int32Array extends RelativeIndexable<number> {}
|
|
225
|
-
interface Uint32Array extends RelativeIndexable<number> {}
|
|
226
|
-
interface Float32Array extends RelativeIndexable<number> {}
|
|
227
|
-
interface Float64Array extends RelativeIndexable<number> {}
|
|
228
|
-
interface BigInt64Array extends RelativeIndexable<bigint> {}
|
|
229
|
-
interface BigUint64Array extends RelativeIndexable<bigint> {}
|
|
230
|
-
// #endregion ArrayLike.at() end
|
|
231
|
-
|
|
232
187
|
/**
|
|
233
188
|
* @since v17.0.0
|
|
234
189
|
*
|
|
@@ -355,7 +310,7 @@ declare global {
|
|
|
355
310
|
unpipe(destination?: WritableStream): this;
|
|
356
311
|
unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
|
|
357
312
|
wrap(oldStream: ReadableStream): this;
|
|
358
|
-
[Symbol.asyncIterator]():
|
|
313
|
+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<string | Buffer>;
|
|
359
314
|
}
|
|
360
315
|
|
|
361
316
|
interface WritableStream extends EventEmitter {
|
|
@@ -424,6 +379,18 @@ declare global {
|
|
|
424
379
|
interface ReadOnlyDict<T> {
|
|
425
380
|
readonly [key: string]: T | undefined;
|
|
426
381
|
}
|
|
382
|
+
|
|
383
|
+
/** An iterable iterator returned by the Node.js API. */
|
|
384
|
+
// Default TReturn/TNext in v18 is `any`, for compatibility with the previously-used IterableIterator.
|
|
385
|
+
interface Iterator<T, TReturn = any, TNext = any> extends IteratorObject<T, TReturn, TNext> {
|
|
386
|
+
[Symbol.iterator](): NodeJS.Iterator<T, TReturn, TNext>;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/** An async iterable iterator returned by the Node.js API. */
|
|
390
|
+
// Default TReturn/TNext in v18 is `any`, for compatibility with the previously-used AsyncIterableIterator.
|
|
391
|
+
interface AsyncIterator<T, TReturn = any, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
|
|
392
|
+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<T, TReturn, TNext>;
|
|
393
|
+
}
|
|
427
394
|
}
|
|
428
395
|
|
|
429
396
|
interface RequestInit extends _RequestInit {}
|
node v18.19/index.d.ts
CHANGED
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
* IN THE SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
// NOTE: These definitions support
|
|
25
|
+
// NOTE: These definitions support Node.js and TypeScript 5.7+.
|
|
26
26
|
|
|
27
|
-
// Reference required
|
|
27
|
+
// Reference required TypeScript libs:
|
|
28
28
|
/// <reference lib="es2020" />
|
|
29
|
-
/// <reference lib="esnext.asynciterable" />
|
|
30
|
-
/// <reference lib="esnext.intl" />
|
|
31
|
-
/// <reference lib="esnext.bigint" />
|
|
32
29
|
|
|
33
|
-
//
|
|
30
|
+
// TypeScript backwards-compatibility definitions:
|
|
31
|
+
/// <reference path="compatibility/index.d.ts" />
|
|
32
|
+
|
|
33
|
+
// Definitions specific to TypeScript 5.7+:
|
|
34
34
|
/// <reference path="globals.typedarray.d.ts" />
|
|
35
35
|
/// <reference path="buffer.buffer.d.ts" />
|
|
36
36
|
|
|
37
|
-
//
|
|
37
|
+
// Definitions for Node.js modules that are not specific to any version of TypeScript:
|
|
38
|
+
/// <reference path="globals.d.ts" />
|
|
38
39
|
/// <reference path="assert.d.ts" />
|
|
39
40
|
/// <reference path="assert/strict.d.ts" />
|
|
40
|
-
/// <reference path="globals.d.ts" />
|
|
41
41
|
/// <reference path="async_hooks.d.ts" />
|
|
42
42
|
/// <reference path="buffer.d.ts" />
|
|
43
43
|
/// <reference path="child_process.d.ts" />
|
|
@@ -88,5 +88,3 @@
|
|
|
88
88
|
/// <reference path="wasi.d.ts" />
|
|
89
89
|
/// <reference path="worker_threads.d.ts" />
|
|
90
90
|
/// <reference path="zlib.d.ts" />
|
|
91
|
-
|
|
92
|
-
/// <reference path="globals.global.d.ts" />
|
node v18.19/net.d.ts
CHANGED
|
@@ -477,6 +477,12 @@ declare module "net" {
|
|
|
477
477
|
* @since v16.5.0
|
|
478
478
|
*/
|
|
479
479
|
keepAliveInitialDelay?: number | undefined;
|
|
480
|
+
/**
|
|
481
|
+
* Optionally overrides all `net.Socket`s' `readableHighWaterMark` and `writableHighWaterMark`.
|
|
482
|
+
* @default See [stream.getDefaultHighWaterMark()](https://nodejs.org/docs/latest-v18.x/api/stream.html#streamgetdefaulthighwatermarkobjectmode).
|
|
483
|
+
* @since v18.17.0
|
|
484
|
+
*/
|
|
485
|
+
highWaterMark?: number | undefined;
|
|
480
486
|
}
|
|
481
487
|
interface DropArgument {
|
|
482
488
|
localAddress?: string;
|
node v18.19/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.19.
|
|
3
|
+
"version": "18.19.56",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -224,6 +224,6 @@
|
|
|
224
224
|
"dependencies": {
|
|
225
225
|
"undici-types": "~5.26.4"
|
|
226
226
|
},
|
|
227
|
-
"typesPublisherContentHash": "
|
|
227
|
+
"typesPublisherContentHash": "4ed39a97b6f2eb0f3586f8a35f0565e6337690585465bad190ea353e63c4ac27",
|
|
228
228
|
"typeScriptVersion": "4.8"
|
|
229
229
|
}
|
node v18.19/readline.d.ts
CHANGED
|
@@ -321,7 +321,7 @@ declare module "readline" {
|
|
|
321
321
|
prependOnceListener(event: "SIGINT", listener: () => void): this;
|
|
322
322
|
prependOnceListener(event: "SIGTSTP", listener: () => void): this;
|
|
323
323
|
prependOnceListener(event: "history", listener: (history: string[]) => void): this;
|
|
324
|
-
[Symbol.asyncIterator]():
|
|
324
|
+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<string>;
|
|
325
325
|
}
|
|
326
326
|
export type ReadLine = Interface; // type forwarded for backwards compatibility
|
|
327
327
|
export type Completer = (line: string) => CompleterResult;
|
node v18.19/stream/web.d.ts
CHANGED
|
@@ -166,6 +166,9 @@ declare module "stream/web" {
|
|
|
166
166
|
interface ReadableStreamErrorCallback {
|
|
167
167
|
(reason: any): void | PromiseLike<void>;
|
|
168
168
|
}
|
|
169
|
+
interface ReadableStreamAsyncIterator<T> extends NodeJS.AsyncIterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
|
|
170
|
+
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
|
|
171
|
+
}
|
|
169
172
|
/** This Streams API interface represents a readable stream of byte data. */
|
|
170
173
|
interface ReadableStream<R = any> {
|
|
171
174
|
readonly locked: boolean;
|
|
@@ -176,8 +179,8 @@ declare module "stream/web" {
|
|
|
176
179
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
177
180
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
178
181
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
179
|
-
values(options?: { preventCancel?: boolean }):
|
|
180
|
-
[Symbol.asyncIterator]():
|
|
182
|
+
values(options?: { preventCancel?: boolean }): ReadableStreamAsyncIterator<R>;
|
|
183
|
+
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<R>;
|
|
181
184
|
}
|
|
182
185
|
const ReadableStream: {
|
|
183
186
|
prototype: ReadableStream;
|
node v18.19/stream.d.ts
CHANGED
|
@@ -445,7 +445,7 @@ declare module "stream" {
|
|
|
445
445
|
* or exiting a `for await...of` iteration using a `break`, `return`, or `throw` will not destroy the stream.
|
|
446
446
|
* **Default: `true`**.
|
|
447
447
|
*/
|
|
448
|
-
iterator(options?: { destroyOnReturn?: boolean }):
|
|
448
|
+
iterator(options?: { destroyOnReturn?: boolean }): NodeJS.AsyncIterator<any>;
|
|
449
449
|
/**
|
|
450
450
|
* This method allows mapping over the stream. The *fn* function will be called for every chunk in the stream.
|
|
451
451
|
* If the *fn* function returns a promise - that promise will be `await`ed before being passed to the result stream.
|
|
@@ -674,7 +674,7 @@ declare module "stream" {
|
|
|
674
674
|
removeListener(event: "readable", listener: () => void): this;
|
|
675
675
|
removeListener(event: "resume", listener: () => void): this;
|
|
676
676
|
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
677
|
-
[Symbol.asyncIterator]():
|
|
677
|
+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<any>;
|
|
678
678
|
/**
|
|
679
679
|
* Calls `readable.destroy()` with an `AbortError` and returns a promise that fulfills when the stream is finished.
|
|
680
680
|
* @since v18.18.0
|
node v18.19/ts5.6/index.d.ts
CHANGED
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
* IN THE SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
// NOTE: These definitions support
|
|
25
|
+
// NOTE: These definitions support Node.js and TypeScript 4.9 through 5.6.
|
|
26
26
|
|
|
27
|
-
// Reference required
|
|
27
|
+
// Reference required TypeScript libs:
|
|
28
28
|
/// <reference lib="es2020" />
|
|
29
|
-
/// <reference lib="esnext.asynciterable" />
|
|
30
|
-
/// <reference lib="esnext.intl" />
|
|
31
|
-
/// <reference lib="esnext.bigint" />
|
|
32
29
|
|
|
33
|
-
//
|
|
30
|
+
// TypeScript backwards-compatibility definitions:
|
|
31
|
+
/// <reference path="../compatibility/index.d.ts" />
|
|
32
|
+
|
|
33
|
+
// Definitions specific to TypeScript 4.9 through 5.6:
|
|
34
34
|
/// <reference path="./globals.typedarray.d.ts" />
|
|
35
35
|
/// <reference path="./buffer.buffer.d.ts" />
|
|
36
36
|
|
|
37
|
-
//
|
|
37
|
+
// Definitions for Node.js modules that are not specific to any version of TypeScript:
|
|
38
|
+
/// <reference path="../globals.d.ts" />
|
|
38
39
|
/// <reference path="../assert.d.ts" />
|
|
39
40
|
/// <reference path="../assert/strict.d.ts" />
|
|
40
|
-
/// <reference path="../globals.d.ts" />
|
|
41
41
|
/// <reference path="../async_hooks.d.ts" />
|
|
42
42
|
/// <reference path="../buffer.d.ts" />
|
|
43
43
|
/// <reference path="../child_process.d.ts" />
|
|
@@ -88,4 +88,3 @@
|
|
|
88
88
|
/// <reference path="../wasi.d.ts" />
|
|
89
89
|
/// <reference path="../worker_threads.d.ts" />
|
|
90
90
|
/// <reference path="../zlib.d.ts" />
|
|
91
|
-
/// <reference path="../globals.global.d.ts" />
|
node v18.19/url.d.ts
CHANGED
|
@@ -742,6 +742,9 @@ declare module "url" {
|
|
|
742
742
|
*/
|
|
743
743
|
toJSON(): string;
|
|
744
744
|
}
|
|
745
|
+
interface URLSearchParamsIterator<T> extends NodeJS.Iterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
|
|
746
|
+
[Symbol.iterator](): URLSearchParamsIterator<T>;
|
|
747
|
+
}
|
|
745
748
|
/**
|
|
746
749
|
* The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the
|
|
747
750
|
* four following constructors.
|
|
@@ -812,7 +815,7 @@ declare module "url" {
|
|
|
812
815
|
*
|
|
813
816
|
* Alias for `urlSearchParams[@@iterator]()`.
|
|
814
817
|
*/
|
|
815
|
-
entries():
|
|
818
|
+
entries(): URLSearchParamsIterator<[string, string]>;
|
|
816
819
|
/**
|
|
817
820
|
* Iterates over each name-value pair in the query and invokes the given function.
|
|
818
821
|
*
|
|
@@ -866,7 +869,7 @@ declare module "url" {
|
|
|
866
869
|
* // foo
|
|
867
870
|
* ```
|
|
868
871
|
*/
|
|
869
|
-
keys():
|
|
872
|
+
keys(): URLSearchParamsIterator<string>;
|
|
870
873
|
/**
|
|
871
874
|
* Sets the value in the `URLSearchParams` object associated with `name` to`value`. If there are any pre-existing name-value pairs whose names are `name`,
|
|
872
875
|
* set the first such pair's value to `value` and remove all others. If not,
|
|
@@ -916,8 +919,8 @@ declare module "url" {
|
|
|
916
919
|
/**
|
|
917
920
|
* Returns an ES6 `Iterator` over the values of each name-value pair.
|
|
918
921
|
*/
|
|
919
|
-
values():
|
|
920
|
-
[Symbol.iterator]():
|
|
922
|
+
values(): URLSearchParamsIterator<string>;
|
|
923
|
+
[Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
|
|
921
924
|
}
|
|
922
925
|
import { URL as _URL, URLSearchParams as _URLSearchParams } from "url";
|
|
923
926
|
global {
|
node v18.19/util.d.ts
CHANGED
|
@@ -1544,7 +1544,7 @@ declare module "util" {
|
|
|
1544
1544
|
/**
|
|
1545
1545
|
* Returns an iterator over each of the name-value pairs in the parameters.
|
|
1546
1546
|
*/
|
|
1547
|
-
entries():
|
|
1547
|
+
entries(): NodeJS.Iterator<[name: string, value: string]>;
|
|
1548
1548
|
/**
|
|
1549
1549
|
* Returns the value of the first name-value pair whose name is `name`.
|
|
1550
1550
|
* If there are no such pairs, `null` is returned.
|
|
@@ -1557,7 +1557,7 @@ declare module "util" {
|
|
|
1557
1557
|
/**
|
|
1558
1558
|
* Returns an iterator over the names of each name-value pair.
|
|
1559
1559
|
*/
|
|
1560
|
-
keys():
|
|
1560
|
+
keys(): NodeJS.Iterator<string>;
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Sets the value in the `MIMEParams` object associated with `name` to `value`.
|
|
1563
1563
|
* If there are any pre-existing name-value pairs whose names are `name`,
|
|
@@ -1567,11 +1567,11 @@ declare module "util" {
|
|
|
1567
1567
|
/**
|
|
1568
1568
|
* Returns an iterator over the values of each name-value pair.
|
|
1569
1569
|
*/
|
|
1570
|
-
values():
|
|
1570
|
+
values(): NodeJS.Iterator<string>;
|
|
1571
1571
|
/**
|
|
1572
1572
|
* Returns an iterator over each of the name-value pairs in the parameters.
|
|
1573
1573
|
*/
|
|
1574
|
-
[Symbol.iterator]:
|
|
1574
|
+
[Symbol.iterator](): NodeJS.Iterator<[name: string, value: string]>;
|
|
1575
1575
|
}
|
|
1576
1576
|
}
|
|
1577
1577
|
declare module "util/types" {
|
node v18.19/globals.global.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare var global: typeof globalThis;
|