@types/chrome 0.3.0 → 0.3.1
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.
- chrome/README.md +1 -1
- chrome/index.d.ts +52 -7
- 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:
|
|
11
|
+
* Last updated: Mon, 28 Sep 2026 17:35:53 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
|
@@ -8989,6 +8989,43 @@ declare namespace chrome {
|
|
|
8989
8989
|
const onProxyError: events.Event<(details: ErrorDetails) => void>;
|
|
8990
8990
|
}
|
|
8991
8991
|
|
|
8992
|
+
////////////////////
|
|
8993
|
+
// PublicSuffix
|
|
8994
|
+
////////////////////
|
|
8995
|
+
/**
|
|
8996
|
+
* Use the `chrome.publicSuffix` API to query the browser's Public Suffix List (PSL).
|
|
8997
|
+
*
|
|
8998
|
+
* Permissions: "publicSuffix"
|
|
8999
|
+
* @since Chrome 153
|
|
9000
|
+
*/
|
|
9001
|
+
export namespace publicSuffix {
|
|
9002
|
+
/** The encoding to use for returned domains. */
|
|
9003
|
+
enum DomainEncoding {
|
|
9004
|
+
DISPLAY = "display",
|
|
9005
|
+
PUNYCODE = "punycode",
|
|
9006
|
+
}
|
|
9007
|
+
|
|
9008
|
+
interface DomainOptions {
|
|
9009
|
+
/** Whether IP addresses may be returned as domains. Defaults to false. Note: When allowed, IP addresses are returned without being looked up in the Public Suffix List. */
|
|
9010
|
+
allowIPAddress?: boolean | undefined;
|
|
9011
|
+
/** Whether known public suffixes may be returned as domains. Defaults to false. */
|
|
9012
|
+
allowPlainSuffix?: boolean | undefined;
|
|
9013
|
+
/** Whether unknown TLDs should be considered as a public suffix. For example, for non-public hostnames like `printer.internal-network`. Defaults to false. */
|
|
9014
|
+
allowUnknownSuffix?: boolean | undefined;
|
|
9015
|
+
/** The encoding to use for the returned domain. Defaults to "punycode", but pass "display" if displaying the domain to the user. Generally, "display" will use Unicode, except in cases where that would be unsafe due to ["Unicode confusables"](https://www.unicode.org/reports/tr39/#Confusable_Detection). */
|
|
9016
|
+
encoding?: `${DomainEncoding}` | undefined;
|
|
9017
|
+
}
|
|
9018
|
+
|
|
9019
|
+
/** Gets the registrable domain for `hostname`, if any. */
|
|
9020
|
+
function getDomain(hostname: string, options?: DomainOptions): string | null;
|
|
9021
|
+
|
|
9022
|
+
/** Gets the known public suffix for `hostname`, if any. */
|
|
9023
|
+
function getKnownSuffix(hostname: string): string | null;
|
|
9024
|
+
|
|
9025
|
+
/** Determines whether `hostname` is itself a known public suffix. */
|
|
9026
|
+
function isKnownSuffix(hostname: string): boolean;
|
|
9027
|
+
}
|
|
9028
|
+
|
|
8992
9029
|
////////////////////
|
|
8993
9030
|
// ReadingList
|
|
8994
9031
|
////////////////////
|
|
@@ -10019,7 +10056,7 @@ declare namespace chrome {
|
|
|
10019
10056
|
* Send a single message to a native application. This method requires the `"nativeMessaging"` permission
|
|
10020
10057
|
*
|
|
10021
10058
|
* Can return its result via Promise in Manifest V3 or later since Chrome 99.
|
|
10022
|
-
* @param application The name of the native messaging host.
|
|
10059
|
+
* @param application The name of the native messaging host, or target details.
|
|
10023
10060
|
* @param message The message that will be passed to the native messaging host.
|
|
10024
10061
|
*/
|
|
10025
10062
|
function sendNativeMessage(application: string, message: object): Promise<any>;
|
|
@@ -10982,7 +11019,7 @@ declare namespace chrome {
|
|
|
10982
11019
|
/** The user-friendly name (e.g. 'HP LCD monitor'). */
|
|
10983
11020
|
name: string;
|
|
10984
11021
|
/**
|
|
10985
|
-
* @platform ChromeOS
|
|
11022
|
+
* @platform ChromeOS only
|
|
10986
11023
|
* @since Chrome 67
|
|
10987
11024
|
*/
|
|
10988
11025
|
edid?: Edid;
|
|
@@ -11093,7 +11130,7 @@ declare namespace chrome {
|
|
|
11093
11130
|
/**
|
|
11094
11131
|
* Requests the layout info for all displays
|
|
11095
11132
|
* Can return its result via Promise in Manifest V3 or later since Chrome 91.
|
|
11096
|
-
* @platform ChromeOS
|
|
11133
|
+
* @platform ChromeOS only
|
|
11097
11134
|
* @since Chrome 53
|
|
11098
11135
|
*/
|
|
11099
11136
|
function getDisplayLayout(callback: (layouts: DisplayLayout[]) => void): void;
|
|
@@ -11105,7 +11142,7 @@ declare namespace chrome {
|
|
|
11105
11142
|
* Updates the properties for the display specified by `id`,
|
|
11106
11143
|
* according to the information provided in `info`.
|
|
11107
11144
|
* On failure, `runtime.lastError` will be set.
|
|
11108
|
-
* @platform ChromeOS
|
|
11145
|
+
* @platform ChromeOS only
|
|
11109
11146
|
* @param id The display's unique identifier.
|
|
11110
11147
|
* @param info The information about display properties that should be changed. A property will be changed only if a new value for it is specified in `info`.
|
|
11111
11148
|
*/
|
|
@@ -11118,7 +11155,7 @@ declare namespace chrome {
|
|
|
11118
11155
|
* If a layout would overlap or be otherwise invalid it will be adjusted to a valid layout.
|
|
11119
11156
|
* After layout is resolved, an onDisplayChanged event will be triggered.
|
|
11120
11157
|
* Can return its result via Promise in Manifest V3 or later since Chrome 91.
|
|
11121
|
-
* @platform ChromeOS
|
|
11158
|
+
* @platform ChromeOS only
|
|
11122
11159
|
* @since Chrome 53
|
|
11123
11160
|
* @param layouts The layout information, required for all displays except the primary display.
|
|
11124
11161
|
*/
|
|
@@ -11129,8 +11166,8 @@ declare namespace chrome {
|
|
|
11129
11166
|
* Enables/disables the unified desktop feature.
|
|
11130
11167
|
* If enabled while mirroring is active, the desktop mode will not change until mirroring is turned off.
|
|
11131
11168
|
* Otherwise, the desktop mode will switch to unified immediately.
|
|
11169
|
+
* @platform ChromeOS only
|
|
11132
11170
|
* @since Chrome 46
|
|
11133
|
-
* @platform ChromeOS and Web UI only
|
|
11134
11171
|
* @param enabled True if unified desktop should be enabled.
|
|
11135
11172
|
*/
|
|
11136
11173
|
function enableUnifiedDesktop(enabled: boolean): void;
|
|
@@ -11139,6 +11176,7 @@ declare namespace chrome {
|
|
|
11139
11176
|
* Starts overscan calibration for a display.
|
|
11140
11177
|
* This will show an overlay on the screen indicating the current overscan insets.
|
|
11141
11178
|
* If overscan calibration for display `id` is in progress this will reset calibration.
|
|
11179
|
+
* @platform ChromeOS only
|
|
11142
11180
|
* @since Chrome 53
|
|
11143
11181
|
* @param id The display's unique identifier.
|
|
11144
11182
|
*/
|
|
@@ -11149,6 +11187,7 @@ declare namespace chrome {
|
|
|
11149
11187
|
* Typically this should either move the display along an axis (e.g. left+right have the same value)
|
|
11150
11188
|
* or scale it along an axis (e.g. top+bottom have opposite values).
|
|
11151
11189
|
* Each Adjust call is cumulative with previous calls since Start.
|
|
11190
|
+
* @platform ChromeOS only
|
|
11152
11191
|
* @since Chrome 53
|
|
11153
11192
|
* @param id The display's unique identifier.
|
|
11154
11193
|
* @param delta The amount to change the overscan insets.
|
|
@@ -11157,6 +11196,7 @@ declare namespace chrome {
|
|
|
11157
11196
|
|
|
11158
11197
|
/**
|
|
11159
11198
|
* Resets the overscan insets for a display to the last saved value (i.e before Start was called).
|
|
11199
|
+
* @platform ChromeOS only
|
|
11160
11200
|
* @since Chrome 53
|
|
11161
11201
|
* @param id The display's unique identifier.
|
|
11162
11202
|
*/
|
|
@@ -11164,6 +11204,7 @@ declare namespace chrome {
|
|
|
11164
11204
|
|
|
11165
11205
|
/**
|
|
11166
11206
|
* Complete overscan adjustments for a display by saving the current values and hiding the overlay.
|
|
11207
|
+
* @platform ChromeOS only
|
|
11167
11208
|
* @since Chrome 53
|
|
11168
11209
|
* @param id The display's unique identifier.
|
|
11169
11210
|
*/
|
|
@@ -11175,6 +11216,7 @@ declare namespace chrome {
|
|
|
11175
11216
|
* The callback will be invoked in case of successful calibration only.
|
|
11176
11217
|
* If the calibration fails, this will throw an error.
|
|
11177
11218
|
* Can return its result via Promise in Manifest V3 or later since Chrome 91.
|
|
11219
|
+
* @platform ChromeOS only
|
|
11178
11220
|
* @since Chrome 57
|
|
11179
11221
|
* @param id The display's unique identifier.
|
|
11180
11222
|
*/
|
|
@@ -11185,6 +11227,7 @@ declare namespace chrome {
|
|
|
11185
11227
|
* Starts custom touch calibration for a display.
|
|
11186
11228
|
* This should be called when using a custom UX for collecting calibration data.
|
|
11187
11229
|
* If another touch calibration is already in progress this will throw an error.
|
|
11230
|
+
* @platform ChromeOS only
|
|
11188
11231
|
* @since Chrome 57
|
|
11189
11232
|
* @param id The display's unique identifier.
|
|
11190
11233
|
*/
|
|
@@ -11195,6 +11238,7 @@ declare namespace chrome {
|
|
|
11195
11238
|
* These `pairs` would be used to calibrate the touch screen for display with `id` called in startCustomTouchCalibration().
|
|
11196
11239
|
* Always call `startCustomTouchCalibration` before calling this method.
|
|
11197
11240
|
* If another touch calibration is already in progress this will throw an error.
|
|
11241
|
+
* @platform ChromeOS only
|
|
11198
11242
|
* @since Chrome 57
|
|
11199
11243
|
* @param pairs The pairs of point used to calibrate the display.
|
|
11200
11244
|
* @param bounds Bounds of the display when the touch calibration was performed. `bounds.left` and `bounds.top` values are ignored.
|
|
@@ -11204,6 +11248,7 @@ declare namespace chrome {
|
|
|
11204
11248
|
|
|
11205
11249
|
/**
|
|
11206
11250
|
* Resets the touch calibration for the display and brings it back to its default state by clearing any touch calibration data associated with the display.
|
|
11251
|
+
* @platform ChromeOS only
|
|
11207
11252
|
* @since Chrome 57
|
|
11208
11253
|
* @param id The display's unique identifier.
|
|
11209
11254
|
*/
|
|
@@ -11213,7 +11258,7 @@ declare namespace chrome {
|
|
|
11213
11258
|
* Sets the display mode to the specified mirror mode.
|
|
11214
11259
|
* Each call resets the state from previous calls.
|
|
11215
11260
|
* Calling setDisplayProperties() will fail for the mirroring destination displays.
|
|
11216
|
-
* @platform ChromeOS
|
|
11261
|
+
* @platform ChromeOS only
|
|
11217
11262
|
* @param info The information of the mirror mode that should be applied to the display mode.
|
|
11218
11263
|
* @since Chrome 65
|
|
11219
11264
|
*/
|
chrome/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/chrome",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "TypeScript definitions for chrome",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
"@types/har-format": "*"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {},
|
|
57
|
-
"typesPublisherContentHash": "
|
|
57
|
+
"typesPublisherContentHash": "7ea6fa0086ffac2cbb3c773dd4de696ba9b67e5439157b5b025db56df5a9be3c",
|
|
58
58
|
"typeScriptVersion": "5.6"
|
|
59
59
|
}
|