chrome-types 0.1.142 → 0.1.144
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.
- package/_all.d.ts +44 -12
- package/index.d.ts +44 -12
- package/package.json +2 -2
package/_all.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Thu Oct 27 2022 22:30:04 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at e5a31326bad1d5e393ba0d753528e832bd4f9521
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -9579,7 +9579,7 @@ declare namespace chrome {
|
|
|
9579
9579
|
}
|
|
9580
9580
|
|
|
9581
9581
|
/**
|
|
9582
|
-
* The minimum number of static rules guaranteed to an extension across its enabled static rulesets. Any rules above this limit will count towards the [global rule limit](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#global-rule-limit).
|
|
9582
|
+
* The minimum number of static rules guaranteed to an extension across its enabled static rulesets. Any rules above this limit will count towards the [global static rule limit](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#global-static-rule-limit).
|
|
9583
9583
|
*
|
|
9584
9584
|
* @since Chrome 89
|
|
9585
9585
|
*/
|
|
@@ -9883,7 +9883,7 @@ declare namespace chrome {
|
|
|
9883
9883
|
): void;
|
|
9884
9884
|
|
|
9885
9885
|
/**
|
|
9886
|
-
* Returns the number of static rules an extension can enable before the [global static rule limit](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#global-rule-limit) is reached.
|
|
9886
|
+
* Returns the number of static rules an extension can enable before the [global static rule limit](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#global-static-rule-limit) is reached.
|
|
9887
9887
|
*
|
|
9888
9888
|
* @chrome-returns-extra since Pending
|
|
9889
9889
|
* @since Chrome 89
|
|
@@ -9891,7 +9891,7 @@ declare namespace chrome {
|
|
|
9891
9891
|
export function getAvailableStaticRuleCount(): Promise<number>;
|
|
9892
9892
|
|
|
9893
9893
|
/**
|
|
9894
|
-
* Returns the number of static rules an extension can enable before the [global static rule limit](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#global-rule-limit) is reached.
|
|
9894
|
+
* Returns the number of static rules an extension can enable before the [global static rule limit](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#global-static-rule-limit) is reached.
|
|
9895
9895
|
*
|
|
9896
9896
|
* @since Chrome 89
|
|
9897
9897
|
*/
|
|
@@ -23382,21 +23382,53 @@ declare namespace chrome {
|
|
|
23382
23382
|
* **Important**: Most extensions/apps should **not** use this method, since Chrome already does automatic checks every few hours, and you can listen for the {@link runtime.onUpdateAvailable} event without needing to call requestUpdateCheck.
|
|
23383
23383
|
*
|
|
23384
23384
|
* This method is only appropriate to call in very limited circumstances, such as if your extension/app talks to a backend service, and the backend service has determined that the client extension/app version is very far out of date and you'd like to prompt a user to update. Most other uses of requestUpdateCheck, such as calling it unconditionally based on a repeating timer, probably only serve to waste client, network, and server resources.
|
|
23385
|
+
*
|
|
23386
|
+
* Note: When called with a callback, instead of returning an object this function will return the two properties as separate arguments passed to the callback.
|
|
23387
|
+
*
|
|
23388
|
+
* @chrome-returns-extra since Pending
|
|
23389
|
+
*/
|
|
23390
|
+
export function requestUpdateCheck(): Promise<{
|
|
23391
|
+
|
|
23392
|
+
/**
|
|
23393
|
+
* Result of the update check.
|
|
23394
|
+
*/
|
|
23395
|
+
status: RequestUpdateCheckStatus,
|
|
23396
|
+
|
|
23397
|
+
/**
|
|
23398
|
+
* If an update is available, this contains the version of the available update.
|
|
23399
|
+
*/
|
|
23400
|
+
version?: string,
|
|
23401
|
+
}>;
|
|
23402
|
+
|
|
23403
|
+
/**
|
|
23404
|
+
* Requests an immediate update check be done for this app/extension.
|
|
23405
|
+
*
|
|
23406
|
+
* **Important**: Most extensions/apps should **not** use this method, since Chrome already does automatic checks every few hours, and you can listen for the {@link runtime.onUpdateAvailable} event without needing to call requestUpdateCheck.
|
|
23407
|
+
*
|
|
23408
|
+
* This method is only appropriate to call in very limited circumstances, such as if your extension/app talks to a backend service, and the backend service has determined that the client extension/app version is very far out of date and you'd like to prompt a user to update. Most other uses of requestUpdateCheck, such as calling it unconditionally based on a repeating timer, probably only serve to waste client, network, and server resources.
|
|
23409
|
+
*
|
|
23410
|
+
* Note: When called with a callback, instead of returning an object this function will return the two properties as separate arguments passed to the callback.
|
|
23385
23411
|
*/
|
|
23386
23412
|
export function requestUpdateCheck(
|
|
23387
23413
|
|
|
23388
23414
|
/**
|
|
23389
|
-
* @param status
|
|
23390
|
-
* @param details If an update is available, this contains more information about the available update.
|
|
23415
|
+
* @param result RequestUpdateCheckResult object that holds the status of the update check and any details of the result if there is an update available
|
|
23391
23416
|
*/
|
|
23392
|
-
callback
|
|
23393
|
-
|
|
23394
|
-
|
|
23417
|
+
callback?: (
|
|
23418
|
+
/**
|
|
23419
|
+
* @since Pending
|
|
23420
|
+
*/
|
|
23421
|
+
result: {
|
|
23422
|
+
|
|
23423
|
+
/**
|
|
23424
|
+
* Result of the update check.
|
|
23425
|
+
*/
|
|
23426
|
+
status: RequestUpdateCheckStatus,
|
|
23395
23427
|
|
|
23396
23428
|
/**
|
|
23397
|
-
*
|
|
23429
|
+
* If an update is available, this contains the version of the available update.
|
|
23398
23430
|
*/
|
|
23399
|
-
version
|
|
23431
|
+
version?: string,
|
|
23400
23432
|
},
|
|
23401
23433
|
) => void,
|
|
23402
23434
|
): void;
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Thu Oct 27 2022 22:29:59 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at e5a31326bad1d5e393ba0d753528e832bd4f9521
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -6381,7 +6381,7 @@ declare namespace chrome {
|
|
|
6381
6381
|
}
|
|
6382
6382
|
|
|
6383
6383
|
/**
|
|
6384
|
-
* The minimum number of static rules guaranteed to an extension across its enabled static rulesets. Any rules above this limit will count towards the [global rule limit](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#global-rule-limit).
|
|
6384
|
+
* The minimum number of static rules guaranteed to an extension across its enabled static rulesets. Any rules above this limit will count towards the [global static rule limit](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#global-static-rule-limit).
|
|
6385
6385
|
*
|
|
6386
6386
|
* @since Chrome 89
|
|
6387
6387
|
*/
|
|
@@ -6685,7 +6685,7 @@ declare namespace chrome {
|
|
|
6685
6685
|
): void;
|
|
6686
6686
|
|
|
6687
6687
|
/**
|
|
6688
|
-
* Returns the number of static rules an extension can enable before the [global static rule limit](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#global-rule-limit) is reached.
|
|
6688
|
+
* Returns the number of static rules an extension can enable before the [global static rule limit](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#global-static-rule-limit) is reached.
|
|
6689
6689
|
*
|
|
6690
6690
|
* @chrome-returns-extra since Pending
|
|
6691
6691
|
* @since Chrome 89
|
|
@@ -6693,7 +6693,7 @@ declare namespace chrome {
|
|
|
6693
6693
|
export function getAvailableStaticRuleCount(): Promise<number>;
|
|
6694
6694
|
|
|
6695
6695
|
/**
|
|
6696
|
-
* Returns the number of static rules an extension can enable before the [global static rule limit](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#global-rule-limit) is reached.
|
|
6696
|
+
* Returns the number of static rules an extension can enable before the [global static rule limit](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#global-static-rule-limit) is reached.
|
|
6697
6697
|
*
|
|
6698
6698
|
* @since Chrome 89
|
|
6699
6699
|
*/
|
|
@@ -18252,21 +18252,53 @@ declare namespace chrome {
|
|
|
18252
18252
|
* **Important**: Most extensions/apps should **not** use this method, since Chrome already does automatic checks every few hours, and you can listen for the {@link runtime.onUpdateAvailable} event without needing to call requestUpdateCheck.
|
|
18253
18253
|
*
|
|
18254
18254
|
* This method is only appropriate to call in very limited circumstances, such as if your extension/app talks to a backend service, and the backend service has determined that the client extension/app version is very far out of date and you'd like to prompt a user to update. Most other uses of requestUpdateCheck, such as calling it unconditionally based on a repeating timer, probably only serve to waste client, network, and server resources.
|
|
18255
|
+
*
|
|
18256
|
+
* Note: When called with a callback, instead of returning an object this function will return the two properties as separate arguments passed to the callback.
|
|
18257
|
+
*
|
|
18258
|
+
* @chrome-returns-extra since Pending
|
|
18259
|
+
*/
|
|
18260
|
+
export function requestUpdateCheck(): Promise<{
|
|
18261
|
+
|
|
18262
|
+
/**
|
|
18263
|
+
* Result of the update check.
|
|
18264
|
+
*/
|
|
18265
|
+
status: RequestUpdateCheckStatus,
|
|
18266
|
+
|
|
18267
|
+
/**
|
|
18268
|
+
* If an update is available, this contains the version of the available update.
|
|
18269
|
+
*/
|
|
18270
|
+
version?: string,
|
|
18271
|
+
}>;
|
|
18272
|
+
|
|
18273
|
+
/**
|
|
18274
|
+
* Requests an immediate update check be done for this app/extension.
|
|
18275
|
+
*
|
|
18276
|
+
* **Important**: Most extensions/apps should **not** use this method, since Chrome already does automatic checks every few hours, and you can listen for the {@link runtime.onUpdateAvailable} event without needing to call requestUpdateCheck.
|
|
18277
|
+
*
|
|
18278
|
+
* This method is only appropriate to call in very limited circumstances, such as if your extension/app talks to a backend service, and the backend service has determined that the client extension/app version is very far out of date and you'd like to prompt a user to update. Most other uses of requestUpdateCheck, such as calling it unconditionally based on a repeating timer, probably only serve to waste client, network, and server resources.
|
|
18279
|
+
*
|
|
18280
|
+
* Note: When called with a callback, instead of returning an object this function will return the two properties as separate arguments passed to the callback.
|
|
18255
18281
|
*/
|
|
18256
18282
|
export function requestUpdateCheck(
|
|
18257
18283
|
|
|
18258
18284
|
/**
|
|
18259
|
-
* @param status
|
|
18260
|
-
* @param details If an update is available, this contains more information about the available update.
|
|
18285
|
+
* @param result RequestUpdateCheckResult object that holds the status of the update check and any details of the result if there is an update available
|
|
18261
18286
|
*/
|
|
18262
|
-
callback
|
|
18263
|
-
|
|
18264
|
-
|
|
18287
|
+
callback?: (
|
|
18288
|
+
/**
|
|
18289
|
+
* @since Pending
|
|
18290
|
+
*/
|
|
18291
|
+
result: {
|
|
18292
|
+
|
|
18293
|
+
/**
|
|
18294
|
+
* Result of the update check.
|
|
18295
|
+
*/
|
|
18296
|
+
status: RequestUpdateCheckStatus,
|
|
18265
18297
|
|
|
18266
18298
|
/**
|
|
18267
|
-
*
|
|
18299
|
+
* If an update is available, this contains the version of the available update.
|
|
18268
18300
|
*/
|
|
18269
|
-
version
|
|
18301
|
+
version?: string,
|
|
18270
18302
|
},
|
|
18271
18303
|
) => void,
|
|
18272
18304
|
): void;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"name": "chrome-types",
|
|
7
7
|
"config": {
|
|
8
|
-
"build-hash": "
|
|
8
|
+
"build-hash": "a70e8bfc1fbee2b5"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"url": "https://github.com/GoogleChrome/chrome-types/issues"
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/GoogleChrome/chrome-types",
|
|
19
|
-
"version": "0.1.
|
|
19
|
+
"version": "0.1.144"
|
|
20
20
|
}
|