@types/node 22.8.3 → 22.8.4

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 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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 29 Oct 2024 16:37:49 GMT
11
+ * Last updated: Tue, 29 Oct 2024 17:02:26 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/crypto.d.ts CHANGED
@@ -609,11 +609,6 @@ declare module "crypto" {
609
609
  * @since v11.6.0
610
610
  */
611
611
  asymmetricKeyType?: KeyType | undefined;
612
- /**
613
- * For asymmetric keys, this property represents the size of the embedded key in
614
- * bytes. This property is `undefined` for symmetric keys.
615
- */
616
- asymmetricKeySize?: number | undefined;
617
612
  /**
618
613
  * This property exists only on asymmetric keys. Depending on the type of the key,
619
614
  * this object contains information about the key. None of the information obtained
node/fs/promises.d.ts CHANGED
@@ -238,6 +238,10 @@ declare module "fs/promises" {
238
238
  length?: number | null,
239
239
  position?: number | null,
240
240
  ): Promise<FileReadResult<T>>;
241
+ read<T extends NodeJS.ArrayBufferView = Buffer>(
242
+ buffer: T,
243
+ options?: FileReadOptions<T>,
244
+ ): Promise<FileReadResult<T>>;
241
245
  read<T extends NodeJS.ArrayBufferView = Buffer>(options?: FileReadOptions<T>): Promise<FileReadResult<T>>;
242
246
  /**
243
247
  * Returns a `ReadableStream` that may be used to read the files data.
@@ -429,6 +433,13 @@ declare module "fs/promises" {
429
433
  bytesWritten: number;
430
434
  buffer: TBuffer;
431
435
  }>;
436
+ write<TBuffer extends Uint8Array>(
437
+ buffer: TBuffer,
438
+ options?: { offset?: number; length?: number; position?: number },
439
+ ): Promise<{
440
+ bytesWritten: number;
441
+ buffer: TBuffer;
442
+ }>;
432
443
  write(
433
444
  data: string,
434
445
  position?: number | null,
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "22.8.3",
3
+ "version": "22.8.4",
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.19.8"
221
221
  },
222
222
  "peerDependencies": {},
223
- "typesPublisherContentHash": "6b7a7784efb1c6113c415dfcf3e3245db72fc539a8db3355c58d6d06306606a2",
223
+ "typesPublisherContentHash": "b5e95f7873a1811a61b3409c809ee30655d0268d76d767dbe9efc27cb421459f",
224
224
  "typeScriptVersion": "4.8"
225
225
  }