@types/node 18.19.106 → 18.19.108
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/globals.d.ts +0 -5
- node v18.19/package.json +2 -2
- node v18.19/perf_hooks.d.ts +2 -2
- node v18.19/worker_threads.d.ts +19 -7
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: Fri, 30 May 2025 05:02:50 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v18.19/globals.d.ts
CHANGED
|
@@ -249,11 +249,6 @@ declare global {
|
|
|
249
249
|
|
|
250
250
|
// Global DOM types
|
|
251
251
|
|
|
252
|
-
function structuredClone<T>(
|
|
253
|
-
value: T,
|
|
254
|
-
transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
|
|
255
|
-
): T;
|
|
256
|
-
|
|
257
252
|
interface DOMException extends _DOMException {}
|
|
258
253
|
var DOMException: typeof globalThis extends { onmessage: any; DOMException: infer T } ? T
|
|
259
254
|
: NodeDOMExceptionConstructor;
|
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.108",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
"undici-types": "~5.26.4"
|
|
221
221
|
},
|
|
222
222
|
"peerDependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "38902cf96691334d7ddf431a1a049f05b9b41d13c51a126984832c09825d45f5",
|
|
224
224
|
"typeScriptVersion": "5.1"
|
|
225
225
|
}
|
node v18.19/perf_hooks.d.ts
CHANGED
|
@@ -823,12 +823,12 @@ declare module "perf_hooks" {
|
|
|
823
823
|
* The minimum recordable value. Must be an integer value greater than 0.
|
|
824
824
|
* @default 1
|
|
825
825
|
*/
|
|
826
|
-
|
|
826
|
+
lowest?: number | bigint | undefined;
|
|
827
827
|
/**
|
|
828
828
|
* The maximum recordable value. Must be an integer value greater than min.
|
|
829
829
|
* @default Number.MAX_SAFE_INTEGER
|
|
830
830
|
*/
|
|
831
|
-
|
|
831
|
+
highest?: number | bigint | undefined;
|
|
832
832
|
/**
|
|
833
833
|
* The number of accuracy digits. Must be a number between 1 and 5.
|
|
834
834
|
* @default 3
|
node v18.19/worker_threads.d.ts
CHANGED
|
@@ -52,14 +52,13 @@
|
|
|
52
52
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/worker_threads.js)
|
|
53
53
|
*/
|
|
54
54
|
declare module "worker_threads" {
|
|
55
|
-
import { Blob } from "node:buffer";
|
|
56
55
|
import { Context } from "node:vm";
|
|
57
56
|
import { EventEmitter } from "node:events";
|
|
58
57
|
import { EventLoopUtilityFunction } from "node:perf_hooks";
|
|
59
58
|
import { FileHandle } from "node:fs/promises";
|
|
60
59
|
import { Readable, Writable } from "node:stream";
|
|
60
|
+
import { ReadableStream, TransformStream, WritableStream } from "node:stream/web";
|
|
61
61
|
import { URL } from "node:url";
|
|
62
|
-
import { X509Certificate } from "node:crypto";
|
|
63
62
|
const isMainThread: boolean;
|
|
64
63
|
const parentPort: null | MessagePort;
|
|
65
64
|
const resourceLimits: ResourceLimits;
|
|
@@ -88,7 +87,16 @@ declare module "worker_threads" {
|
|
|
88
87
|
interface WorkerPerformance {
|
|
89
88
|
eventLoopUtilization: EventLoopUtilityFunction;
|
|
90
89
|
}
|
|
91
|
-
type
|
|
90
|
+
type Transferable =
|
|
91
|
+
| ArrayBuffer
|
|
92
|
+
| MessagePort
|
|
93
|
+
| AbortSignal
|
|
94
|
+
| FileHandle
|
|
95
|
+
| ReadableStream
|
|
96
|
+
| WritableStream
|
|
97
|
+
| TransformStream;
|
|
98
|
+
/** @deprecated Use `import { Transferable } from "node:worker_threads"` instead. */
|
|
99
|
+
type TransferListItem = Transferable;
|
|
92
100
|
/**
|
|
93
101
|
* Instances of the `worker.MessagePort` class represent one end of an
|
|
94
102
|
* asynchronous, two-way communications channel. It can be used to transfer
|
|
@@ -173,7 +181,7 @@ declare module "worker_threads" {
|
|
|
173
181
|
* behind this API, see the `serialization API of the v8 module`.
|
|
174
182
|
* @since v10.5.0
|
|
175
183
|
*/
|
|
176
|
-
postMessage(value: any, transferList?: readonly
|
|
184
|
+
postMessage(value: any, transferList?: readonly Transferable[]): void;
|
|
177
185
|
/**
|
|
178
186
|
* Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does _not_ let the program exit if it's the only active handle left (the default
|
|
179
187
|
* behavior). If the port is `ref()`ed, calling `ref()` again has no effect.
|
|
@@ -260,7 +268,7 @@ declare module "worker_threads" {
|
|
|
260
268
|
/**
|
|
261
269
|
* Additional data to send in the first worker message.
|
|
262
270
|
*/
|
|
263
|
-
transferList?:
|
|
271
|
+
transferList?: Transferable[] | undefined;
|
|
264
272
|
/**
|
|
265
273
|
* @default true
|
|
266
274
|
*/
|
|
@@ -407,7 +415,7 @@ declare module "worker_threads" {
|
|
|
407
415
|
* See `port.postMessage()` for more details.
|
|
408
416
|
* @since v10.5.0
|
|
409
417
|
*/
|
|
410
|
-
postMessage(value: any, transferList?: readonly
|
|
418
|
+
postMessage(value: any, transferList?: readonly Transferable[]): void;
|
|
411
419
|
/**
|
|
412
420
|
* Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does _not_ let the program exit if it's the only active handle left (the default
|
|
413
421
|
* behavior). If the worker is `ref()`ed, calling `ref()` again has
|
|
@@ -648,7 +656,7 @@ declare module "worker_threads" {
|
|
|
648
656
|
* @param value Any arbitrary, cloneable JavaScript value that will be cloned and passed automatically to all new `Worker` instances. If `value` is passed as `undefined`, any previously set value
|
|
649
657
|
* for the `key` will be deleted.
|
|
650
658
|
*/
|
|
651
|
-
function setEnvironmentData(key: Serializable, value
|
|
659
|
+
function setEnvironmentData(key: Serializable, value?: Serializable): void;
|
|
652
660
|
|
|
653
661
|
import {
|
|
654
662
|
BroadcastChannel as _BroadcastChannel,
|
|
@@ -656,6 +664,10 @@ declare module "worker_threads" {
|
|
|
656
664
|
MessagePort as _MessagePort,
|
|
657
665
|
} from "worker_threads";
|
|
658
666
|
global {
|
|
667
|
+
function structuredClone<T>(
|
|
668
|
+
value: T,
|
|
669
|
+
options?: { transfer?: Transferable[] },
|
|
670
|
+
): T;
|
|
659
671
|
/**
|
|
660
672
|
* `BroadcastChannel` class is a global reference for `import { BroadcastChannel } from 'node:worker_threads'`
|
|
661
673
|
* https://nodejs.org/api/globals.html#broadcastchannel
|