@types/node 24.0.0 → 24.0.2

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.
Files changed (5) hide show
  1. node/README.md +1 -1
  2. node/fs/promises.d.ts +3 -2
  3. node/fs.d.ts +1 -1
  4. node/package.json +2 -2
  5. node/url.d.ts +11 -2
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, 10 Jun 2025 02:18:06 GMT
11
+ * Last updated: Mon, 16 Jun 2025 08:40:15 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/fs/promises.d.ts CHANGED
@@ -29,6 +29,7 @@ declare module "fs/promises" {
29
29
  OpenDirOptions,
30
30
  OpenMode,
31
31
  PathLike,
32
+ ReadPosition,
32
33
  ReadStream,
33
34
  ReadVResult,
34
35
  RmDirOptions,
@@ -69,7 +70,7 @@ declare module "fs/promises" {
69
70
  * @default `buffer.byteLength`
70
71
  */
71
72
  length?: number | null;
72
- position?: number | null;
73
+ position?: ReadPosition | null;
73
74
  }
74
75
  interface CreateReadStreamOptions extends Abortable {
75
76
  encoding?: BufferEncoding | null | undefined;
@@ -229,7 +230,7 @@ declare module "fs/promises" {
229
230
  buffer: T,
230
231
  offset?: number | null,
231
232
  length?: number | null,
232
- position?: number | null,
233
+ position?: ReadPosition | null,
233
234
  ): Promise<FileReadResult<T>>;
234
235
  read<T extends NodeJS.ArrayBufferView = Buffer>(
235
236
  buffer: T,
node/fs.d.ts CHANGED
@@ -2650,7 +2650,7 @@ declare module "fs" {
2650
2650
  buffer: TBuffer,
2651
2651
  offset: number,
2652
2652
  length: number,
2653
- position: number | null,
2653
+ position: ReadPosition | null,
2654
2654
  ): Promise<{
2655
2655
  bytesRead: number;
2656
2656
  buffer: TBuffer;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "24.0.0",
3
+ "version": "24.0.2",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -230,6 +230,6 @@
230
230
  "undici-types": "~7.8.0"
231
231
  },
232
232
  "peerDependencies": {},
233
- "typesPublisherContentHash": "8d6ceac3f0f5283bf419c4930f679c52f7a63cc3f0cc2bd866acff9fb14a8eba",
233
+ "typesPublisherContentHash": "eac1d5a6632a9e91296cc382c96c064b09bec57183f927267493e052bbc394e8",
234
234
  "typeScriptVersion": "5.1"
235
235
  }
node/url.d.ts CHANGED
@@ -791,8 +791,17 @@ declare module "url" {
791
791
  class URLPattern {
792
792
  constructor(input: string | URLPatternInit, baseURL: string, options?: URLPatternOptions);
793
793
  constructor(input?: string | URLPatternInit, options?: URLPatternOptions);
794
- exec(input: string | URLPatternInit, baseURL?: string): URLPatternResult | null;
795
- test(input: string | URLPatternInit, baseURL?: string): boolean;
794
+ exec(input?: string | URLPatternInit, baseURL?: string): URLPatternResult | null;
795
+ readonly hasRegExpGroups: boolean;
796
+ readonly hash: string;
797
+ readonly hostname: string;
798
+ readonly password: string;
799
+ readonly pathname: string;
800
+ readonly port: string;
801
+ readonly protocol: string;
802
+ readonly search: string;
803
+ test(input?: string | URLPatternInit, baseURL?: string): boolean;
804
+ readonly username: string;
796
805
  }
797
806
  interface URLSearchParamsIterator<T> extends NodeJS.Iterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
798
807
  [Symbol.iterator](): URLSearchParamsIterator<T>;