@types/node 18.19.37 → 18.19.39

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 v18.19/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/v18.
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
@@ -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;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.19.37",
3
+ "version": "18.19.39",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -217,6 +217,6 @@
217
217
  "dependencies": {
218
218
  "undici-types": "~5.26.4"
219
219
  },
220
- "typesPublisherContentHash": "cea0ca08c5f037e0a72733aa6bcd201f6a3b0334927311b663eb3d2f33eb82c5",
220
+ "typesPublisherContentHash": "85871cbefdb82570518b3d29a3251dfec5673c02d4cc1cdfb81278bb069bd220",
221
221
  "typeScriptVersion": "4.7"
222
222
  }
node v18.19/test.d.ts CHANGED
@@ -729,7 +729,7 @@ declare module "node:test" {
729
729
  * This function is used to change the behavior of an existing mock.
730
730
  * @param implementation The function to be used as the mock's new implementation.
731
731
  */
732
- mockImplementation(implementation: Function): void;
732
+ mockImplementation(implementation: F): void;
733
733
 
734
734
  /**
735
735
  * This function is used to change the behavior of an existing mock for a single invocation.
@@ -739,7 +739,7 @@ declare module "node:test" {
739
739
  * @param onCall The invocation number that will use `implementation`.
740
740
  * If the specified invocation has already occurred then an exception is thrown.
741
741
  */
742
- mockImplementationOnce(implementation: Function, onCall?: number): void;
742
+ mockImplementationOnce(implementation: F, onCall?: number): void;
743
743
 
744
744
  /**
745
745
  * Resets the call history of the mock function.