@types/node 20.14.6 → 20.14.8

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: Wed, 19 Jun 2024 16:07:46 GMT
11
+ * Last updated: Sat, 22 Jun 2024 07:35:32 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/child_process.d.ts CHANGED
@@ -1391,8 +1391,8 @@ declare module "child_process" {
1391
1391
  * @param modulePath The module to run in the child.
1392
1392
  * @param args List of string arguments.
1393
1393
  */
1394
- function fork(modulePath: string, options?: ForkOptions): ChildProcess;
1395
- function fork(modulePath: string, args?: readonly string[], options?: ForkOptions): ChildProcess;
1394
+ function fork(modulePath: string | URL, options?: ForkOptions): ChildProcess;
1395
+ function fork(modulePath: string | URL, args?: readonly string[], options?: ForkOptions): ChildProcess;
1396
1396
  interface SpawnSyncOptions extends CommonSpawnOptions {
1397
1397
  input?: string | NodeJS.ArrayBufferView | undefined;
1398
1398
  maxBuffer?: number | undefined;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.14.6",
3
+ "version": "20.14.8",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -212,6 +212,6 @@
212
212
  "dependencies": {
213
213
  "undici-types": "~5.26.4"
214
214
  },
215
- "typesPublisherContentHash": "7ad87ee86165e98ba92d3e3f4bd58e162ffc58fa84208518416853f7f0f704fc",
215
+ "typesPublisherContentHash": "7f1c7cbbd4b01202220b325496b6a96822975f892d3eb44558ea7ffcf74ae32c",
216
216
  "typeScriptVersion": "4.7"
217
217
  }
node/test.d.ts CHANGED
@@ -1031,7 +1031,7 @@ declare module "node:test" {
1031
1031
  * @since v19.1.0, v18.13.0
1032
1032
  * @param implementation The function to be used as the mock's new implementation.
1033
1033
  */
1034
- mockImplementation(implementation: Function): void;
1034
+ mockImplementation(implementation: F): void;
1035
1035
  /**
1036
1036
  * This function is used to change the behavior of an existing mock for a single
1037
1037
  * invocation. Once invocation `onCall` has occurred, the mock will revert to
@@ -1068,7 +1068,7 @@ declare module "node:test" {
1068
1068
  * @param implementation The function to be used as the mock's implementation for the invocation number specified by `onCall`.
1069
1069
  * @param onCall The invocation number that will use `implementation`. If the specified invocation has already occurred then an exception is thrown.
1070
1070
  */
1071
- mockImplementationOnce(implementation: Function, onCall?: number): void;
1071
+ mockImplementationOnce(implementation: F, onCall?: number): void;
1072
1072
  /**
1073
1073
  * Resets the call history of the mock function.
1074
1074
  * @since v19.3.0, v18.13.0