@types/chrome 0.1.0 → 0.1.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 +4 -4
- 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: Wed, 16 Jul 2025 16:03:15 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
@@ -471,23 +471,23 @@ declare namespace chrome {
|
|
471
471
|
/**
|
472
472
|
* Retrieves details about the specified alarm.
|
473
473
|
*/
|
474
|
-
export function get(callback: (alarm
|
474
|
+
export function get(callback: (alarm?: Alarm) => void): void;
|
475
475
|
/**
|
476
476
|
* Retrieves details about the specified alarm.
|
477
477
|
* @return The `get` method provides its result via callback or returned as a `Promise` (MV3 only).
|
478
478
|
*/
|
479
|
-
export function get(): Promise<Alarm>;
|
479
|
+
export function get(): Promise<Alarm | undefined>;
|
480
480
|
/**
|
481
481
|
* Retrieves details about the specified alarm.
|
482
482
|
* @param name The name of the alarm to get. Defaults to the empty string.
|
483
483
|
*/
|
484
|
-
export function get(name: string, callback: (alarm
|
484
|
+
export function get(name: string, callback: (alarm?: Alarm) => void): void;
|
485
485
|
/**
|
486
486
|
* Retrieves details about the specified alarm.
|
487
487
|
* @param name The name of the alarm to get. Defaults to the empty string.
|
488
488
|
* @return The `get` method provides its result via callback or returned as a `Promise` (MV3 only).
|
489
489
|
*/
|
490
|
-
export function get(name: string): Promise<Alarm>;
|
490
|
+
export function get(name: string): Promise<Alarm | undefined>;
|
491
491
|
|
492
492
|
/** Fired when an alarm has elapsed. Useful for event pages. */
|
493
493
|
export var onAlarm: AlarmEvent;
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.1",
|
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": "348f57137d9f883f4aba8956428029dcdd1cb715e1d49fcb3ec5e90743755fa0",
|
98
98
|
"typeScriptVersion": "5.1"
|
99
99
|
}
|