@types/node 16.11.62 → 16.11.64

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 v16.11/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/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 26 Sep 2022 19:33:04 GMT
11
+ * Last updated: Mon, 03 Oct 2022 22:33:04 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
node v16.11/buffer.d.ts CHANGED
@@ -45,6 +45,7 @@
45
45
  */
46
46
  declare module 'buffer' {
47
47
  import { BinaryLike } from 'node:crypto';
48
+ import { ReadableStream as WebReadableStream } from 'node:stream/web';
48
49
  export const INSPECT_MAX_BYTES: number;
49
50
  export const kMaxLength: number;
50
51
  export const kStringMaxLength: number;
@@ -158,10 +159,10 @@ declare module 'buffer' {
158
159
  */
159
160
  text(): Promise<string>;
160
161
  /**
161
- * Returns a new `ReadableStream` that allows the content of the `Blob` to be read.
162
+ * Returns a new (WHATWG) `ReadableStream` that allows the content of the `Blob` to be read.
162
163
  * @since v16.7.0
163
164
  */
164
- stream(): unknown; // pending web streams types
165
+ stream(): WebReadableStream;
165
166
  }
166
167
  export import atob = globalThis.atob;
167
168
  export import btoa = globalThis.btoa;
node v16.11/net.d.ts CHANGED
@@ -794,7 +794,6 @@ declare module 'net' {
794
794
  class SocketAddress {
795
795
  constructor(options: SocketAddressInitOptions);
796
796
  /**
797
- * Either \`'ipv4'\` or \`'ipv6'\`.
798
797
  * @since v15.14.0
799
798
  */
800
799
  readonly address: string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.11.62",
3
+ "version": "16.11.64",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -227,6 +227,6 @@
227
227
  },
228
228
  "scripts": {},
229
229
  "dependencies": {},
230
- "typesPublisherContentHash": "646b4860fde837e0c5efb5f4720e8f3158157348b1b641bebee4743d5ffcdaad",
230
+ "typesPublisherContentHash": "ee1afca298a6f737a7b417dcc5bdf25fb305bf10e06a5b5b5becdb6cde8ee564",
231
231
  "typeScriptVersion": "4.1"
232
232
  }
@@ -1,22 +1,10 @@
1
- // Duplicates of interface in lib.dom.ts.
2
- // Duplicated here rather than referencing lib.dom.ts because doing so causes lib.dom.ts to be loaded for "test-all"
3
- // Which in turn causes tests to pass that shouldn't pass.
4
- //
5
- // This interface is not, and should not be, exported.
6
- interface Blob {
7
- readonly size: number;
8
- readonly type: string;
9
- arrayBuffer(): Promise<ArrayBuffer>;
10
- slice(start?: number, end?: number, contentType?: string): Blob;
11
- stream(): NodeJS.ReadableStream;
12
- text(): Promise<string>;
13
- }
14
1
  declare module 'stream/consumers' {
15
2
  import { Readable } from 'node:stream';
3
+ import { Blob as NodeBlob } from "node:buffer";
16
4
  function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<Buffer>;
17
5
  function text(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<string>;
18
6
  function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<ArrayBuffer>;
19
- function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<Blob>;
7
+ function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<NodeBlob>;
20
8
  function json(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<unknown>;
21
9
  }
22
10
  declare module 'node:stream/consumers' {
@@ -794,7 +794,6 @@ declare module 'net' {
794
794
  class SocketAddress {
795
795
  constructor(options: SocketAddressInitOptions);
796
796
  /**
797
- * Either \`'ipv4'\` or \`'ipv6'\`.
798
797
  * @since v15.14.0
799
798
  */
800
799
  readonly address: string;