@types/node 22.15.30 → 22.15.31
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/README.md → node v22.15/README.md +2 -2
- node/compatibility/disposable.d.ts → node v22.15/compatibility/disposable.d.ts +0 -2
- node/compatibility/indexable.d.ts → node v22.15/compatibility/indexable.d.ts +0 -3
- node/compatibility/iterators.d.ts → node v22.15/compatibility/iterators.d.ts +0 -1
- node/globals.d.ts → node v22.15/globals.d.ts +0 -2
- node/module.d.ts → node v22.15/module.d.ts +0 -1
- node/package.json → node v22.15/package.json +2 -2
- node/test.d.ts → node v22.15/test.d.ts +0 -2
- node/worker_threads.d.ts → node v22.15/worker_threads.d.ts +0 -1
- {node → node v22.15}/LICENSE +0 -0
- {node → node v22.15}/assert/strict.d.ts +0 -0
- {node → node v22.15}/assert.d.ts +0 -0
- {node → node v22.15}/async_hooks.d.ts +0 -0
- {node → node v22.15}/buffer.buffer.d.ts +0 -0
- {node → node v22.15}/buffer.d.ts +0 -0
- {node → node v22.15}/child_process.d.ts +0 -0
- {node → node v22.15}/cluster.d.ts +0 -0
- {node → node v22.15}/compatibility/index.d.ts +0 -0
- {node → node v22.15}/console.d.ts +0 -0
- {node → node v22.15}/constants.d.ts +0 -0
- {node → node v22.15}/crypto.d.ts +0 -0
- {node → node v22.15}/dgram.d.ts +0 -0
- {node → node v22.15}/diagnostics_channel.d.ts +0 -0
- {node → node v22.15}/dns/promises.d.ts +0 -0
- {node → node v22.15}/dns.d.ts +0 -0
- {node → node v22.15}/dom-events.d.ts +0 -0
- {node → node v22.15}/domain.d.ts +0 -0
- {node → node v22.15}/events.d.ts +0 -0
- {node → node v22.15}/fs/promises.d.ts +0 -0
- {node → node v22.15}/fs.d.ts +0 -0
- {node → node v22.15}/globals.typedarray.d.ts +0 -0
- {node → node v22.15}/http.d.ts +0 -0
- {node → node v22.15}/http2.d.ts +0 -0
- {node → node v22.15}/https.d.ts +0 -0
- {node → node v22.15}/index.d.ts +0 -0
- {node → node v22.15}/inspector.d.ts +0 -0
- {node → node v22.15}/net.d.ts +0 -0
- {node → node v22.15}/os.d.ts +0 -0
- {node → node v22.15}/path.d.ts +0 -0
- {node → node v22.15}/perf_hooks.d.ts +0 -0
- {node → node v22.15}/process.d.ts +0 -0
- {node → node v22.15}/punycode.d.ts +0 -0
- {node → node v22.15}/querystring.d.ts +0 -0
- {node → node v22.15}/readline/promises.d.ts +0 -0
- {node → node v22.15}/readline.d.ts +0 -0
- {node → node v22.15}/repl.d.ts +0 -0
- {node → node v22.15}/sea.d.ts +0 -0
- {node → node v22.15}/sqlite.d.ts +0 -0
- {node → node v22.15}/stream/consumers.d.ts +0 -0
- {node → node v22.15}/stream/promises.d.ts +0 -0
- {node → node v22.15}/stream/web.d.ts +0 -0
- {node → node v22.15}/stream.d.ts +0 -0
- {node → node v22.15}/string_decoder.d.ts +0 -0
- {node → node v22.15}/timers/promises.d.ts +0 -0
- {node → node v22.15}/timers.d.ts +0 -0
- {node → node v22.15}/tls.d.ts +0 -0
- {node → node v22.15}/trace_events.d.ts +0 -0
- {node → node v22.15}/ts5.6/buffer.buffer.d.ts +0 -0
- {node → node v22.15}/ts5.6/globals.typedarray.d.ts +0 -0
- {node → node v22.15}/ts5.6/index.d.ts +0 -0
- {node → node v22.15}/tty.d.ts +0 -0
- {node → node v22.15}/url.d.ts +0 -0
- {node → node v22.15}/util.d.ts +0 -0
- {node → node v22.15}/v8.d.ts +0 -0
- {node → node v22.15}/vm.d.ts +0 -0
- {node → node v22.15}/wasi.d.ts +0 -0
- {node → node v22.15}/zlib.d.ts +0 -0
@@ -5,10 +5,10 @@
|
|
5
5
|
This package contains type definitions for node (https://nodejs.org/).
|
6
6
|
|
7
7
|
# Details
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v22.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Tue, 10 Jun 2025 02:18:06 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
@@ -1,6 +1,4 @@
|
|
1
1
|
// Polyfills for the explicit resource management types added in TypeScript 5.2.
|
2
|
-
// TODO: remove once this package no longer supports TS 5.1, and replace with a
|
3
|
-
// <reference> to TypeScript's disposable library in index.d.ts.
|
4
2
|
|
5
3
|
interface SymbolConstructor {
|
6
4
|
readonly dispose: unique symbol;
|
@@ -1,7 +1,4 @@
|
|
1
1
|
// Polyfill for ES2022's .at() method on string/array prototypes, added to TypeScript in 4.6.
|
2
|
-
// TODO: these methods are not used within @types/node, and should be removed at the next
|
3
|
-
// major @types/node version; users should include the es2022 TypeScript libraries
|
4
|
-
// if they need these features.
|
5
2
|
|
6
3
|
interface RelativeIndexable<T> {
|
7
4
|
at(index: number): T | undefined;
|
@@ -3,7 +3,6 @@
|
|
3
3
|
// are expected (eg. DOM-compatible APIs) if lib.esnext.iterator is loaded.
|
4
4
|
// Also ensures that iterators returned by the Node API, which inherit from Iterator.prototype, correctly expose the iterator helper methods
|
5
5
|
// if lib.esnext.iterator is loaded.
|
6
|
-
// TODO: remove once this package no longer supports TS 5.5, and replace NodeJS.BuiltinIteratorReturn with BuiltinIteratorReturn.
|
7
6
|
|
8
7
|
// Placeholders for TS <5.6
|
9
8
|
interface IteratorObject<T, TReturn, TNext> {}
|
@@ -251,14 +251,12 @@ declare global {
|
|
251
251
|
|
252
252
|
/** An iterable iterator returned by the Node.js API. */
|
253
253
|
// Default TReturn/TNext in v22 is `any`, for compatibility with the previously-used IterableIterator.
|
254
|
-
// TODO: In next major @types/node version, change default TReturn to undefined.
|
255
254
|
interface Iterator<T, TReturn = any, TNext = any> extends IteratorObject<T, TReturn, TNext> {
|
256
255
|
[Symbol.iterator](): NodeJS.Iterator<T, TReturn, TNext>;
|
257
256
|
}
|
258
257
|
|
259
258
|
/** An async iterable iterator returned by the Node.js API. */
|
260
259
|
// Default TReturn/TNext in v22 is `any`, for compatibility with the previously-used AsyncIterableIterator.
|
261
|
-
// TODO: In next major @types/node version, change default TReturn to undefined.
|
262
260
|
interface AsyncIterator<T, TReturn = any, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
|
263
261
|
[Symbol.asyncIterator](): NodeJS.AsyncIterator<T, TReturn, TNext>;
|
264
262
|
}
|
@@ -772,7 +772,6 @@ declare module "module" {
|
|
772
772
|
*/
|
773
773
|
var require: NodeJS.Require;
|
774
774
|
// Global-scope aliases for backwards compatibility with @types/node <13.0.x
|
775
|
-
// TODO: consider removing in a future major version update
|
776
775
|
/** @deprecated Use `NodeJS.Module` instead. */
|
777
776
|
interface NodeModule extends NodeJS.Module {}
|
778
777
|
/** @deprecated Use `NodeJS.Require` instead. */
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "22.15.
|
3
|
+
"version": "22.15.31",
|
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": "~6.21.0"
|
221
221
|
},
|
222
222
|
"peerDependencies": {},
|
223
|
-
"typesPublisherContentHash": "
|
223
|
+
"typesPublisherContentHash": "1ba9213adf63443b1d408206cd7fef06bfb41aa3b67219d0ec8b8d922e74c9bc",
|
224
224
|
"typeScriptVersion": "5.1"
|
225
225
|
}
|
@@ -2272,8 +2272,6 @@ declare module "node:test/reporters" {
|
|
2272
2272
|
* [`--experimental-test-coverage`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--experimental-test-coverage) flag.
|
2273
2273
|
* @since v22.0.0
|
2274
2274
|
*/
|
2275
|
-
// TODO: change the export to a wrapper function once node@0db38f0 is merged (breaking change)
|
2276
|
-
// const lcov: ReporterConstructorWrapper<typeof LcovReporter>;
|
2277
2275
|
const lcov: LcovReporter;
|
2278
2276
|
|
2279
2277
|
export { dot, junit, lcov, spec, tap, TestEvent };
|
@@ -97,7 +97,6 @@ declare module "worker_threads" {
|
|
97
97
|
| WritableStream
|
98
98
|
| TransformStream;
|
99
99
|
/** @deprecated Use `import { Transferable } from "node:worker_threads"` instead. */
|
100
|
-
// TODO: remove in a future major @types/node version.
|
101
100
|
type TransferListItem = Transferable;
|
102
101
|
/**
|
103
102
|
* Instances of the `worker.MessagePort` class represent one end of an
|
{node → node v22.15}/LICENSE
RENAMED
File without changes
|
File without changes
|
{node → node v22.15}/assert.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
{node → node v22.15}/buffer.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{node → node v22.15}/crypto.d.ts
RENAMED
File without changes
|
{node → node v22.15}/dgram.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
{node → node v22.15}/dns.d.ts
RENAMED
File without changes
|
File without changes
|
{node → node v22.15}/domain.d.ts
RENAMED
File without changes
|
{node → node v22.15}/events.d.ts
RENAMED
File without changes
|
File without changes
|
{node → node v22.15}/fs.d.ts
RENAMED
File without changes
|
File without changes
|
{node → node v22.15}/http.d.ts
RENAMED
File without changes
|
{node → node v22.15}/http2.d.ts
RENAMED
File without changes
|
{node → node v22.15}/https.d.ts
RENAMED
File without changes
|
{node → node v22.15}/index.d.ts
RENAMED
File without changes
|
File without changes
|
{node → node v22.15}/net.d.ts
RENAMED
File without changes
|
{node → node v22.15}/os.d.ts
RENAMED
File without changes
|
{node → node v22.15}/path.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{node → node v22.15}/repl.d.ts
RENAMED
File without changes
|
{node → node v22.15}/sea.d.ts
RENAMED
File without changes
|
{node → node v22.15}/sqlite.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{node → node v22.15}/stream.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
{node → node v22.15}/timers.d.ts
RENAMED
File without changes
|
{node → node v22.15}/tls.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{node → node v22.15}/tty.d.ts
RENAMED
File without changes
|
{node → node v22.15}/url.d.ts
RENAMED
File without changes
|
{node → node v22.15}/util.d.ts
RENAMED
File without changes
|
{node → node v22.15}/v8.d.ts
RENAMED
File without changes
|
{node → node v22.15}/vm.d.ts
RENAMED
File without changes
|
{node → node v22.15}/wasi.d.ts
RENAMED
File without changes
|
{node → node v22.15}/zlib.d.ts
RENAMED
File without changes
|