@wxt-dev/browser 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.
- package/package.json +2 -2
- package/src/gen/index.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wxt-dev/browser",
|
|
3
3
|
"description": "Provides a cross-browser API for using extension APIs and types based on @types/chrome",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.mjs",
|
|
7
7
|
"types": "src/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"src"
|
|
20
20
|
],
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@types/chrome": "0.1.
|
|
22
|
+
"@types/chrome": "0.1.1",
|
|
23
23
|
"fs-extra": "^11.3.0",
|
|
24
24
|
"nano-spawn": "^0.2.0",
|
|
25
25
|
"tsx": "4.19.4",
|
package/src/gen/index.d.ts
CHANGED
|
@@ -473,23 +473,23 @@ export namespace Browser {
|
|
|
473
473
|
/**
|
|
474
474
|
* Retrieves details about the specified alarm.
|
|
475
475
|
*/
|
|
476
|
-
export function get(callback: (alarm
|
|
476
|
+
export function get(callback: (alarm?: Alarm) => void): void;
|
|
477
477
|
/**
|
|
478
478
|
* Retrieves details about the specified alarm.
|
|
479
479
|
* @return The `get` method provides its result via callback or returned as a `Promise` (MV3 only).
|
|
480
480
|
*/
|
|
481
|
-
export function get(): Promise<Alarm>;
|
|
481
|
+
export function get(): Promise<Alarm | undefined>;
|
|
482
482
|
/**
|
|
483
483
|
* Retrieves details about the specified alarm.
|
|
484
484
|
* @param name The name of the alarm to get. Defaults to the empty string.
|
|
485
485
|
*/
|
|
486
|
-
export function get(name: string, callback: (alarm
|
|
486
|
+
export function get(name: string, callback: (alarm?: Alarm) => void): void;
|
|
487
487
|
/**
|
|
488
488
|
* Retrieves details about the specified alarm.
|
|
489
489
|
* @param name The name of the alarm to get. Defaults to the empty string.
|
|
490
490
|
* @return The `get` method provides its result via callback or returned as a `Promise` (MV3 only).
|
|
491
491
|
*/
|
|
492
|
-
export function get(name: string): Promise<Alarm>;
|
|
492
|
+
export function get(name: string): Promise<Alarm | undefined>;
|
|
493
493
|
|
|
494
494
|
/** Fired when an alarm has elapsed. Useful for event pages. */
|
|
495
495
|
export var onAlarm: AlarmEvent;
|