wxt 0.19.2 → 0.19.3-alpha1
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/dist/types.d.ts
CHANGED
|
@@ -937,9 +937,14 @@ export interface WxtHooks {
|
|
|
937
937
|
* // variable called "example" in the TS project.
|
|
938
938
|
* entries.push({
|
|
939
939
|
* path: "types/example.d.ts",
|
|
940
|
-
*
|
|
940
|
+
* text: "declare const a: string;",
|
|
941
941
|
* tsReference: true,
|
|
942
942
|
* });
|
|
943
|
+
* // use module to add Triple-Slash Directive in .wxt/wxt.d.ts
|
|
944
|
+
* // eg: /// <reference types="@types/example" />
|
|
945
|
+
* entries.push({
|
|
946
|
+
* module: '@types/example'
|
|
947
|
+
* });
|
|
943
948
|
* })
|
|
944
949
|
*/
|
|
945
950
|
'prepare:types': (wxt: Wxt, entries: WxtDirEntry[]) => HookResult;
|
|
@@ -1266,6 +1271,10 @@ export type WxtDirEntry = WxtDirTypeReferenceEntry | WxtDirFileEntry;
|
|
|
1266
1271
|
* Represents type reference to a node module to be added to `.wxt/wxt.d.ts` file
|
|
1267
1272
|
*/
|
|
1268
1273
|
export interface WxtDirTypeReferenceEntry {
|
|
1274
|
+
/**
|
|
1275
|
+
* Specifies the module name that will be used in the `/// <reference types="..." />` directive.
|
|
1276
|
+
* This value will be added to the `.wxt/wxt.d.ts` file to include type definitions from the specified module.
|
|
1277
|
+
*/
|
|
1269
1278
|
module: string;
|
|
1270
1279
|
}
|
|
1271
1280
|
/**
|
package/dist/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "0.19.
|
|
1
|
+
export const version = "0.19.3-alpha1";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.3-alpha1",
|
|
5
5
|
"description": "Next gen framework for developing web extensions",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"cac": "^6.7.14",
|
|
81
81
|
"chokidar": "^3.6.0",
|
|
82
82
|
"ci-info": "^4.0.0",
|
|
83
|
+
"consola": "^3.2.3",
|
|
83
84
|
"defu": "^6.1.4",
|
|
84
85
|
"dequal": "^2.0.3",
|
|
85
86
|
"esbuild": "^0.23.0",
|