File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1- import type { App , Plugin } from 'vue'
1+ import type { App , Plugin , InjectionKey } from 'vue'
22
33declare global {
44 interface Window {
@@ -11,16 +11,17 @@ export interface SimpleAnalyticsOptions {
1111 domain ?: string ;
1212}
1313
14+ export declare const saEventKey : InjectionKey < ( event : string ) => void > ;
15+
1416type SimpleAnalyticsPlugin = Plugin & {
1517 install ( app : App , options ?: SimpleAnalyticsOptions ) : void ;
1618}
1719
1820declare const SimpleAnalytics : SimpleAnalyticsPlugin ;
19-
2021export default SimpleAnalytics ;
2122
2223declare module '@vue/runtime-core' {
23- interface ComponentCustomProperties {
24- $ saEvent? : ( event : string ) => void ;
24+ interface InjectionKeys {
25+ saEvent : ( event : string ) => void ;
2526 }
2627}
You can’t perform that action at this time.
0 commit comments