@types/chrome 0.1.8 → 0.1.9

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 (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +14 -23
  3. chrome/package.json +2 -2
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (https://developer.chrome.com/
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 08 Sep 2025 17:02:22 GMT
11
+ * Last updated: Mon, 08 Sep 2025 17:34:26 GMT
12
12
  * Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
13
13
 
14
14
  # Credits
chrome/index.d.ts CHANGED
@@ -2772,41 +2772,32 @@ declare namespace chrome {
2772
2772
  * Manifest: "devtools_page"
2773
2773
  */
2774
2774
  export namespace devtools.network {
2775
- /** Represents a HAR entry for a specific finished request. */
2776
- export interface HAREntry extends HARFormatEntry {}
2777
- /** Represents a HAR log that contains all known network requests. */
2778
- export interface HARLog extends HARFormatLog {}
2779
2775
  /** Represents a network request for a document resource (script, image and so on). See HAR Specification for reference. */
2780
- export interface Request extends chrome.devtools.network.HAREntry {
2781
- /**
2782
- * Returns content of the response body.
2783
- * @param callback A function that receives the response body when the request completes.
2784
- */
2776
+ export interface Request extends HARFormatEntry {
2777
+ /** Returns content of the response body. */
2785
2778
  getContent(
2786
2779
  callback: (
2787
- /** Content of the response body (potentially encoded) */
2780
+ /** Content of the response body (potentially encoded). */
2788
2781
  content: string,
2789
- /** Empty if content is not encoded, encoding name otherwise. Currently, only base64 is supported */
2782
+ /** Empty if content is not encoded, encoding name otherwise. Currently, only base64 is supported. */
2790
2783
  encoding: string,
2791
2784
  ) => void,
2792
2785
  ): void;
2793
2786
  }
2794
2787
 
2795
- export interface RequestFinishedEvent extends chrome.events.Event<(request: Request) => void> {}
2796
-
2797
- export interface NavigatedEvent extends chrome.events.Event<(url: string) => void> {}
2798
-
2799
- /**
2800
- * Returns HAR log that contains all known network requests.
2801
- * @param callback A function that receives the HAR log when the request completes.
2802
- * Parameter harLog: A HAR log. See HAR specification for details.
2803
- */
2804
- export function getHAR(callback: (harLog: HARLog) => void): void;
2788
+ /** Returns HAR log that contains all known network requests. */
2789
+ export function getHAR(
2790
+ callback: (
2791
+ /** A HAR log. See HAR specification for details. */
2792
+ harLog: HARFormatLog,
2793
+ ) => void,
2794
+ ): void;
2805
2795
 
2806
2796
  /** Fired when a network request is finished and all request data are available. */
2807
- export var onRequestFinished: RequestFinishedEvent;
2797
+ export const onRequestFinished: events.Event<(request: Request) => void>;
2798
+
2808
2799
  /** Fired when the inspected window navigates to a new page. */
2809
- export var onNavigated: NavigatedEvent;
2800
+ export const onNavigated: events.Event<(url: string) => void>;
2810
2801
  }
2811
2802
 
2812
2803
  ////////////////////
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "TypeScript definitions for chrome",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
6
6
  "license": "MIT",
@@ -94,6 +94,6 @@
94
94
  "@types/har-format": "*"
95
95
  },
96
96
  "peerDependencies": {},
97
- "typesPublisherContentHash": "dc5d11f343dffc5c150c5a5c06f8e3b76c47aec59a91ba0ff73658f439f5b217",
97
+ "typesPublisherContentHash": "e1847839136a21eca4a5e3d9983e414a4cc25f314b870dc6c424dbeacdcb8b35",
98
98
  "typeScriptVersion": "5.2"
99
99
  }