@types/node 18.19.45 → 18.19.47

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: Mon, 19 Aug 2024 02:45:10 GMT
11
+ * Last updated: Wed, 28 Aug 2024 00:27:14 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node v18.19/buffer.d.ts CHANGED
@@ -410,9 +410,9 @@ declare module "buffer" {
410
410
  encoding?: BufferEncoding,
411
411
  ): number;
412
412
  /**
413
- * Returns a new `Buffer` which is the result of concatenating all the `Buffer`instances in the `list` together.
413
+ * Returns a new `Buffer` which is the result of concatenating all the `Buffer` instances in the `list` together.
414
414
  *
415
- * If the list has no items, or if the `totalLength` is 0, then a new zero-length`Buffer` is returned.
415
+ * If the list has no items, or if the `totalLength` is 0, then a new zero-length `Buffer` is returned.
416
416
  *
417
417
  * If `totalLength` is not provided, it is calculated from the `Buffer` instances
418
418
  * in `list` by adding their lengths.
@@ -1776,6 +1776,12 @@ declare module 'inspector' {
1776
1776
  * @since v8.0.0
1777
1777
  */
1778
1778
  connect(): void;
1779
+ /**
1780
+ * Connects a session to the inspector back-end.
1781
+ * An exception will be thrown if this API was not called on a Worker thread.
1782
+ * @since v12.11.0
1783
+ */
1784
+ connectToMainThread(): void;
1779
1785
  /**
1780
1786
  * Immediately close the session. All pending message callbacks will be called
1781
1787
  * with an error. `session.connect()` will need to be called to be able to send
@@ -2729,6 +2735,37 @@ declare module 'inspector' {
2729
2735
  * @since v12.7.0
2730
2736
  */
2731
2737
  function waitForDebugger(): void;
2738
+ // These methods are exposed by the V8 inspector console API (inspector/v8-console.h).
2739
+ // The method signatures differ from those of the Node.js console, and are deliberately
2740
+ // typed permissively.
2741
+ interface InspectorConsole {
2742
+ debug(...data: any[]): void;
2743
+ error(...data: any[]): void;
2744
+ info(...data: any[]): void;
2745
+ log(...data: any[]): void;
2746
+ warn(...data: any[]): void;
2747
+ dir(...data: any[]): void;
2748
+ dirxml(...data: any[]): void;
2749
+ table(...data: any[]): void;
2750
+ trace(...data: any[]): void;
2751
+ group(...data: any[]): void;
2752
+ groupCollapsed(...data: any[]): void;
2753
+ groupEnd(...data: any[]): void;
2754
+ clear(...data: any[]): void;
2755
+ count(label?: any): void;
2756
+ countReset(label?: any): void;
2757
+ assert(value?: any, ...data: any[]): void;
2758
+ profile(label?: any): void;
2759
+ profileEnd(label?: any): void;
2760
+ time(label?: any): void;
2761
+ timeLog(label?: any): void;
2762
+ timeStamp(label?: any): void;
2763
+ }
2764
+ /**
2765
+ * An object to send messages to the remote inspector console.
2766
+ * @since v11.0.0
2767
+ */
2768
+ const console: InspectorConsole;
2732
2769
  }
2733
2770
  /**
2734
2771
  * The inspector module provides an API for interacting with the V8 inspector.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.19.45",
3
+ "version": "18.19.47",
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": "62e2e26824406f7498fe9575ed346df1db05eebb610cab4aadc5e2f1a1527e19",
220
+ "typesPublisherContentHash": "d1f247a2b67ea5d8676a67452a9d6d88919b6c5938bf06bf1e6f689cf3b02713",
221
221
  "typeScriptVersion": "4.8"
222
222
  }