@types/chrome 0.1.29 → 0.1.30

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 +21 -1
  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: Fri, 14 Nov 2025 20:02:03 GMT
11
+ * Last updated: Mon, 17 Nov 2025 22:35:44 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
@@ -2524,6 +2524,7 @@ declare namespace chrome {
2524
2524
  }
2525
2525
 
2526
2526
  /** Declarative event action that redirects a network request to an empty document. */
2527
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
2527
2528
  export interface RedirectToEmptyDocument {}
2528
2529
 
2529
2530
  /** Declarative event action that redirects a network request. */
@@ -2566,6 +2567,7 @@ declare namespace chrome {
2566
2567
  }
2567
2568
 
2568
2569
  /** Declarative event action that cancels a network request. */
2570
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
2569
2571
  export interface CancelRequest {}
2570
2572
 
2571
2573
  /** Removes the request header of the specified name. Do not use SetRequestHeader and RemoveRequestHeader with the same header name on the same request. Each request header name occurs only once in each request. */
@@ -2633,6 +2635,7 @@ declare namespace chrome {
2633
2635
  }
2634
2636
 
2635
2637
  /** Declarative event action that redirects a network request to a transparent image. */
2638
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
2636
2639
  export interface RedirectToTransparentImage {}
2637
2640
 
2638
2641
  /** Adds a cookie to the request or overrides a cookie, in case another cookie of the same name exists already. Note that it is preferred to use the Cookies API because this is computationally less expensive. */
@@ -3015,6 +3018,12 @@ declare namespace chrome {
3015
3018
  onHidden: events.Event<() => void>;
3016
3019
  }
3017
3020
 
3021
+ /**
3022
+ * Theme used by DevTools.
3023
+ * @since Chrome 99
3024
+ */
3025
+ export type Theme = "default" | "dark";
3026
+
3018
3027
  /** Elements panel. */
3019
3028
  export const elements: ElementsPanel;
3020
3029
 
@@ -3047,6 +3056,12 @@ declare namespace chrome {
3047
3056
  ) => void,
3048
3057
  ): void;
3049
3058
 
3059
+ /**
3060
+ * Specifies the function to be called when the current theme changes in DevTools. To unset the handler, either call the method with no parameters or pass `null` as the parameter.
3061
+ * @since Chrome 99
3062
+ */
3063
+ export function setThemeChangeHandler(callback?: (theme: Theme) => void): void;
3064
+
3050
3065
  /**
3051
3066
  * Requests DevTools to open a URL in a Developer Tools panel.
3052
3067
  * @param url The URL of the resource to open.
@@ -3065,7 +3080,7 @@ declare namespace chrome {
3065
3080
  * The name of the color theme set in user's DevTools settings.
3066
3081
  * @since Chrome 59
3067
3082
  */
3068
- export const themeName: "default" | "dark";
3083
+ export const themeName: Theme;
3069
3084
  }
3070
3085
 
3071
3086
  ////////////////////
@@ -3743,6 +3758,7 @@ declare namespace chrome {
3743
3758
  SAFE = "safe",
3744
3759
  /** The user has accepted the dangerous download. */
3745
3760
  ACCEPTED = "accepted",
3761
+ /** Enterprise-related values. */
3746
3762
  ALLOWLISTED_BY_POLICY = "allowlistedByPolicy",
3747
3763
  ASYNC_SCANNING = "asyncScanning",
3748
3764
  ASYNC_LOCAL_PASSWORD_SCANNING = "asyncLocalPasswordScanning",
@@ -3757,6 +3773,8 @@ declare namespace chrome {
3757
3773
  PROMPT_FOR_LOCAL_PASSWORD_SCANNING = "promptForLocalPasswordScanning",
3758
3774
  ACCOUNT_COMPROMISE = "accountCompromise",
3759
3775
  BLOCKED_SCAN_FAILED = "blockedScanFailed",
3776
+ /** For use by the Secure Enterprise Browser extension. When required, Chrome will block the download to disc and download the file directly to Google Drive. */
3777
+ FORCE_SAVE_TO_GDRIVE = "forceSaveToGdrive",
3760
3778
  }
3761
3779
 
3762
3780
  export interface DownloadItem {
@@ -10199,6 +10217,7 @@ declare namespace chrome {
10199
10217
  }
10200
10218
 
10201
10219
  /** @deprecated Use {@link CpuTime} instead. */
10220
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
10202
10221
  interface ProcessorUsage extends CpuTime {}
10203
10222
 
10204
10223
  export interface ProcessorInfo {
@@ -12423,6 +12442,7 @@ declare namespace chrome {
12423
12442
  }
12424
12443
 
12425
12444
  /** @deprecated Use {@link Parameters} instead */
12445
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
12426
12446
  interface VpnSessionParameters extends Parameters {}
12427
12447
 
12428
12448
  /** The enum is used by the platform to notify the client of the VPN session status. */
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
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": "8768e75a0259479136460b35c7f59014494e96cd25273d8e592186b131d8e9fc",
97
+ "typesPublisherContentHash": "6e0942666b668f34563db277f484e8bff1e6f66a63e0d550837119256368d7dc",
98
98
  "typeScriptVersion": "5.2"
99
99
  }