@types/chrome 0.0.270 → 0.0.271

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 +26 -1
  3. chrome/package.json +2 -2
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (http://developer.chrome.com/e
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, 12 Aug 2024 15:08:19 GMT
11
+ * Last updated: Sat, 14 Sep 2024 10:37:02 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
@@ -9013,14 +9013,28 @@ declare namespace chrome.system.display {
9013
9013
  singleUnified?: boolean | undefined;
9014
9014
  }
9015
9015
 
9016
+ /**
9017
+ * An enum to tell if the display is detected and used by the system.
9018
+ * The display is considered 'inactive', if it is not detected by the system (maybe disconnected, or considered disconnected due to sleep mode, etc).
9019
+ * This state is used to keep existing display when the all displays are disconnected, for example.
9020
+ * @since Chrome 117
9021
+ */
9022
+ export type ActiveStateEnum = "active" | "inactive";
9023
+
9016
9024
  /** Information about display properties. */
9017
9025
  export interface DisplayInfo {
9026
+ /**
9027
+ * Active if the display is detected and used by the system.
9028
+ * @since Chrome 117
9029
+ */
9030
+ activeState: ActiveStateEnum;
9018
9031
  /** The unique identifier of the display. */
9019
9032
  id: string;
9020
9033
  /** The user-friendly name (e.g. 'HP LCD monitor'). */
9021
9034
  name: string;
9022
9035
  /**
9023
9036
  * requires(CrOS Kiosk app) Only available in Chrome OS Kiosk apps
9037
+ * @since Chrome 67
9024
9038
  */
9025
9039
  edid?: {
9026
9040
  /**
@@ -9050,6 +9064,7 @@ declare namespace chrome.system.display {
9050
9064
  * Empty if no displays are being mirrored. This will be set to the same value
9051
9065
  * for all displays.
9052
9066
  * ❗ This must not include *mirroringSourceId*. ❗
9067
+ * @since Chrome 64
9053
9068
  */
9054
9069
  mirroringDestinationIds: string[];
9055
9070
  /** True if this is the primary display. */
@@ -9058,6 +9073,11 @@ declare namespace chrome.system.display {
9058
9073
  isInternal: boolean;
9059
9074
  /** True if this display is enabled. */
9060
9075
  isEnabled: boolean;
9076
+ /**
9077
+ * True for all displays when in unified desktop mode
9078
+ * @since Chrome 59
9079
+ */
9080
+ isUnified: boolean;
9061
9081
  /** The number of pixels per inch along the x-axis. */
9062
9082
  dpiX: number;
9063
9083
  /** The number of pixels per inch along the y-axis. */
@@ -9076,15 +9096,20 @@ declare namespace chrome.system.display {
9076
9096
  * The current mode will have isSelected=true.
9077
9097
  * Only available on Chrome OS.
9078
9098
  * Will be set to an empty array on other platforms.
9099
+ * @since Chrome 52
9079
9100
  */
9080
9101
  modes: DisplayMode[];
9081
9102
  /** True if this display has a touch input device associated with it. */
9082
9103
  hasTouchSupport: boolean;
9083
- /** A list of zoom factor values that can be set for the display. */
9104
+ /**
9105
+ * A list of zoom factor values that can be set for the display.
9106
+ * @since Chrome 67
9107
+ */
9084
9108
  availableDisplayZoomFactors: number[];
9085
9109
  /**
9086
9110
  * The ratio between the display's current and default zoom.
9087
9111
  * For example, value 1 is equivalent to 100% zoom, and value 1.5 is equivalent to 150% zoom.
9112
+ * @since Chrome 65
9088
9113
  */
9089
9114
  displayZoomFactor: number;
9090
9115
  }
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.270",
3
+ "version": "0.0.271",
4
4
  "description": "TypeScript definitions for chrome",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
6
6
  "license": "MIT",
@@ -93,6 +93,6 @@
93
93
  "@types/filesystem": "*",
94
94
  "@types/har-format": "*"
95
95
  },
96
- "typesPublisherContentHash": "0a10bc27fd8dcfa2ea26af51429949ae41b21b649a0c02421d94c5d53d255110",
96
+ "typesPublisherContentHash": "2d78bd0f0e42e12eb3a7a794724c743148b1befe10cc038d78381a0fdf1f7998",
97
97
  "typeScriptVersion": "4.8"
98
98
  }