@types/chrome 0.1.18 → 0.1.19
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 +13 -6
- 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: Thu, 02 Oct 2025
|
11
|
+
* Last updated: Thu, 02 Oct 2025 20:02:36 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
@@ -10057,7 +10057,7 @@ declare namespace chrome {
|
|
10057
10057
|
* Permissions: "system.cpu"
|
10058
10058
|
*/
|
10059
10059
|
export namespace system.cpu {
|
10060
|
-
export interface
|
10060
|
+
export interface CpuTime {
|
10061
10061
|
/** The cumulative time used by userspace programs on this processor. */
|
10062
10062
|
user: number;
|
10063
10063
|
/** The cumulative time used by kernel programs on this processor. */
|
@@ -10068,9 +10068,12 @@ declare namespace chrome {
|
|
10068
10068
|
total: number;
|
10069
10069
|
}
|
10070
10070
|
|
10071
|
+
/** @deprecated Use {@link CpuTime} instead. */
|
10072
|
+
interface ProcessorUsage extends CpuTime {}
|
10073
|
+
|
10071
10074
|
export interface ProcessorInfo {
|
10072
10075
|
/** Cumulative usage info for this logical processor. */
|
10073
|
-
usage:
|
10076
|
+
usage: CpuTime;
|
10074
10077
|
}
|
10075
10078
|
|
10076
10079
|
export interface CpuInfo {
|
@@ -10087,16 +10090,20 @@ declare namespace chrome {
|
|
10087
10090
|
features: string[];
|
10088
10091
|
/** Information about each logical processor. */
|
10089
10092
|
processors: ProcessorInfo[];
|
10093
|
+
/**
|
10094
|
+
* List of CPU temperature readings from each thermal zone of the CPU. Temperatures are in degrees Celsius.
|
10095
|
+
* @since Chrome 60
|
10096
|
+
*/
|
10097
|
+
temperatures: number[];
|
10090
10098
|
}
|
10091
10099
|
|
10092
|
-
/** Queries basic CPU information of the system. */
|
10093
|
-
export function getInfo(callback: (info: CpuInfo) => void): void;
|
10094
|
-
|
10095
10100
|
/**
|
10096
10101
|
* Queries basic CPU information of the system.
|
10097
|
-
*
|
10102
|
+
*
|
10103
|
+
* Can return its result via Promise in Manifest V3 or later since Chrome 91.
|
10098
10104
|
*/
|
10099
10105
|
export function getInfo(): Promise<CpuInfo>;
|
10106
|
+
export function getInfo(callback: (info: CpuInfo) => void): void;
|
10100
10107
|
}
|
10101
10108
|
|
10102
10109
|
////////////////////
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.19",
|
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": "
|
97
|
+
"typesPublisherContentHash": "a82926d5a4b7fddf359d40643638f66c3408efcef582bb042d95e2827cc75f8a",
|
98
98
|
"typeScriptVersion": "5.2"
|
99
99
|
}
|