@crxjs/vite-plugin 2.0.0-beta.2 → 2.0.0-beta.21
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/client.d.ts +15 -0
- package/dist/index.cjs +0 -1848
- package/dist/index.d.ts +33 -12
- package/dist/index.mjs +244 -73
- package/package.json +22 -20
package/client.d.ts
CHANGED
|
@@ -57,3 +57,18 @@ declare module '*?script&module' {
|
|
|
57
57
|
const fileName: string
|
|
58
58
|
export default fileName
|
|
59
59
|
}
|
|
60
|
+
|
|
61
|
+
declare namespace ContentScriptAPI {
|
|
62
|
+
export interface ExecuteFnOptions {
|
|
63
|
+
perf: {
|
|
64
|
+
injectTime: number
|
|
65
|
+
loadTime: number
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export interface ExecuteFn {
|
|
69
|
+
(options: ExecuteFnOptions): void
|
|
70
|
+
}
|
|
71
|
+
export interface ModuleExports {
|
|
72
|
+
onExecute?: ExecuteFn
|
|
73
|
+
}
|
|
74
|
+
}
|