We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed03815 commit e77c3a8Copy full SHA for e77c3a8
1 file changed
dist/index.d.ts
@@ -1,4 +1,4 @@
1
-import type { App, Plugin } from 'vue'
+import type { App, Plugin, InjectionKey } from 'vue'
2
3
declare global {
4
interface Window {
@@ -11,16 +11,17 @@ export interface SimpleAnalyticsOptions {
11
domain?: string;
12
}
13
14
+export declare const saEventKey: InjectionKey<(event: string) => void>;
15
+
16
type SimpleAnalyticsPlugin = Plugin & {
17
install(app: App, options?: SimpleAnalyticsOptions): void;
18
19
20
declare const SimpleAnalytics: SimpleAnalyticsPlugin;
-
21
export default SimpleAnalytics;
22
23
declare module '@vue/runtime-core' {
- interface ComponentCustomProperties {
24
- $saEvent?: (event: string) => void;
+ interface InjectionKeys {
25
+ saEvent: (event: string) => void;
26
27
0 commit comments