Socket
Socket
Sign inDemoInstall

@types/node

Package Overview
Dependencies
Maintainers
1
Versions
1924
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/node - npm Package Compare versions

Comparing version 20.16.11 to 20.16.12

node v20.16/compatibility/disposable.d.ts

4

node v20.16/events.d.ts

@@ -307,3 +307,3 @@ /**

options?: StaticEventEmitterIteratorOptions,
): AsyncIterableIterator<any[]>;
): NodeJS.AsyncIterator<any[]>;
static on(

@@ -313,3 +313,3 @@ emitter: EventTarget,

options?: StaticEventEmitterIteratorOptions,
): AsyncIterableIterator<any[]>;
): NodeJS.AsyncIterator<any[]>;
/**

@@ -316,0 +316,0 @@ * A class method that returns the number of listeners for the given `eventName` registered on the given `emitter`.

@@ -114,2 +114,4 @@ export {}; // Make this a module

var global: typeof globalThis;
var process: NodeJS.Process;

@@ -186,49 +188,2 @@ var console: Console;

// #region Disposable
interface SymbolConstructor {
/**
* A method that is used to release resources held by an object. Called by the semantics of the `using` statement.
*/
readonly dispose: unique symbol;
/**
* A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.
*/
readonly asyncDispose: unique symbol;
}
interface Disposable {
[Symbol.dispose](): void;
}
interface AsyncDisposable {
[Symbol.asyncDispose](): PromiseLike<void>;
}
// #endregion Disposable
// #region ArrayLike.at()
interface RelativeIndexable<T> {
/**
* Takes an integer value and returns the item at that index,
* allowing for positive and negative integers.
* Negative integers count back from the last item in the array.
*/
at(index: number): T | undefined;
}
interface String extends RelativeIndexable<string> {}
interface Array<T> extends RelativeIndexable<T> {}
interface ReadonlyArray<T> extends RelativeIndexable<T> {}
interface Int8Array extends RelativeIndexable<number> {}
interface Uint8Array extends RelativeIndexable<number> {}
interface Uint8ClampedArray extends RelativeIndexable<number> {}
interface Int16Array extends RelativeIndexable<number> {}
interface Uint16Array extends RelativeIndexable<number> {}
interface Int32Array extends RelativeIndexable<number> {}
interface Uint32Array extends RelativeIndexable<number> {}
interface Float32Array extends RelativeIndexable<number> {}
interface Float64Array extends RelativeIndexable<number> {}
interface BigInt64Array extends RelativeIndexable<bigint> {}
interface BigUint64Array extends RelativeIndexable<bigint> {}
// #endregion ArrayLike.at() end
/**

@@ -386,3 +341,3 @@ * @since v17.0.0

wrap(oldStream: ReadableStream): this;
[Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
[Symbol.asyncIterator](): NodeJS.AsyncIterator<string | Buffer>;
}

@@ -456,2 +411,14 @@

}
/** An iterable iterator returned by the Node.js API. */
// Default TReturn/TNext in v20 is `any`, for compatibility with the previously-used IterableIterator.
interface Iterator<T, TReturn = any, TNext = any> extends IteratorObject<T, TReturn, TNext> {
[Symbol.iterator](): NodeJS.Iterator<T, TReturn, TNext>;
}
/** An async iterable iterator returned by the Node.js API. */
// Default TReturn/TNext in v20 is `any`, for compatibility with the previously-used AsyncIterableIterator.
interface AsyncIterator<T, TReturn = any, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
[Symbol.asyncIterator](): NodeJS.AsyncIterator<T, TReturn, TNext>;
}
}

@@ -458,0 +425,0 @@

@@ -25,18 +25,18 @@ /**

// NOTE: These definitions support NodeJS and TypeScript 5.7+.
// NOTE: These definitions support Node.js and TypeScript 5.7+.
// Reference required types from the default lib:
// Reference required TypeScript libs:
/// <reference lib="es2020" />
/// <reference lib="esnext.asynciterable" />
/// <reference lib="esnext.intl" />
/// <reference lib="esnext.bigint" />
// Definitions specific to TypeScript 5.7+
// TypeScript backwards-compatibility definitions:
/// <reference path="compatibility/index.d.ts" />
// Definitions specific to TypeScript 5.7+:
/// <reference path="globals.typedarray.d.ts" />
/// <reference path="buffer.buffer.d.ts" />
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
// Definitions for Node.js modules that are not specific to any version of TypeScript:
/// <reference path="globals.d.ts" />
/// <reference path="assert.d.ts" />
/// <reference path="assert/strict.d.ts" />
/// <reference path="globals.d.ts" />
/// <reference path="async_hooks.d.ts" />

@@ -93,3 +93,1 @@ /// <reference path="buffer.d.ts" />

/// <reference path="zlib.d.ts" />
/// <reference path="globals.global.d.ts" />
{
"name": "@types/node",
"version": "20.16.11",
"version": "20.16.12",
"description": "TypeScript definitions for node",

@@ -222,4 +222,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",

},
"typesPublisherContentHash": "2d053bead5900334005cf78f342594831ce0d4551db7ce966ba310fad5084b80",
"typesPublisherContentHash": "bf0ad55b978ddf08d52ce086b72799ccfc8fe27373559231ddf273678dfcf1e7",
"typeScriptVersion": "4.8"
}

@@ -307,3 +307,3 @@ /**

prependOnceListener(event: "history", listener: (history: string[]) => void): this;
[Symbol.asyncIterator](): AsyncIterableIterator<string>;
[Symbol.asyncIterator](): NodeJS.AsyncIterator<string>;
}

@@ -310,0 +310,0 @@ export type ReadLine = Interface; // type forwarded for backwards compatibility

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 07 Oct 2024 22:07:58 GMT
* Last updated: Wed, 16 Oct 2024 23:36:24 GMT
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)

@@ -14,0 +14,0 @@

@@ -169,2 +169,5 @@ type _ByteLengthQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}

}
interface ReadableStreamAsyncIterator<T> extends NodeJS.AsyncIterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
}
/** This Streams API interface represents a readable stream of byte data. */

@@ -180,4 +183,4 @@ interface ReadableStream<R = any> {

tee(): [ReadableStream<R>, ReadableStream<R>];
values(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
[Symbol.asyncIterator](): AsyncIterableIterator<R>;
values(options?: { preventCancel?: boolean }): ReadableStreamAsyncIterator<R>;
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<R>;
}

@@ -184,0 +187,0 @@ const ReadableStream: {

@@ -25,18 +25,18 @@ /**

// NOTE: These definitions support NodeJS and TypeScript 4.9 through 5.6.
// NOTE: These definitions support Node.js and TypeScript 4.9 through 5.6.
// Reference required types from the default lib:
// Reference required TypeScript libs:
/// <reference lib="es2020" />
/// <reference lib="esnext.asynciterable" />
/// <reference lib="esnext.intl" />
/// <reference lib="esnext.bigint" />
// Definitions specific to TypeScript 4.9 through 5.6
// TypeScript backwards-compatibility definitions:
/// <reference path="../compatibility/index.d.ts" />
// Definitions specific to TypeScript 4.9 through 5.6:
/// <reference path="./globals.typedarray.d.ts" />
/// <reference path="./buffer.buffer.d.ts" />
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
// Definitions for Node.js modules that are not specific to any version of TypeScript:
/// <reference path="../globals.d.ts" />
/// <reference path="../assert.d.ts" />
/// <reference path="../assert/strict.d.ts" />
/// <reference path="../globals.d.ts" />
/// <reference path="../async_hooks.d.ts" />

@@ -93,2 +93,1 @@ /// <reference path="../buffer.d.ts" />

/// <reference path="../zlib.d.ts" />
/// <reference path="../globals.global.d.ts" />

@@ -743,2 +743,5 @@ /**

}
interface URLSearchParamsIterator<T> extends NodeJS.Iterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): URLSearchParamsIterator<T>;
}
/**

@@ -814,3 +817,3 @@ * 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

*/
entries(): IterableIterator<[string, string]>;
entries(): URLSearchParamsIterator<[string, string]>;
/**

@@ -869,3 +872,3 @@ * Iterates over each name-value pair in the query and invokes the given function.

*/
keys(): IterableIterator<string>;
keys(): URLSearchParamsIterator<string>;
/**

@@ -920,4 +923,4 @@ * 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`,

*/
values(): IterableIterator<string>;
[Symbol.iterator](): IterableIterator<[string, string]>;
values(): URLSearchParamsIterator<string>;
[Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
}

@@ -924,0 +927,0 @@ import { URL as _URL, URLSearchParams as _URLSearchParams } from "url";

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc