@crxjs/vite-plugin 2.0.0-beta.3 → 2.0.0-beta.30

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/README.md CHANGED
File without changes
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
+ }