-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7c61e2
commit 5c75f37
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import type Vue from 'vue' | ||
import type { default as VueAnalytics, InstallOptions } from 'vue-analytics' | ||
import './vuex' | ||
|
||
declare module '@nuxt/vue-app' { | ||
interface Context { | ||
$ga: VueAnalytics | ||
} | ||
interface NuxtAppOptions { | ||
$ga: VueAnalytics | ||
} | ||
} | ||
|
||
// Nuxt 2.9+ | ||
declare module '@nuxt/types' { | ||
interface Context { | ||
$ga: VueAnalytics | ||
} | ||
|
||
interface NuxtAppOptions { | ||
$ga: VueAnalytics | ||
} | ||
|
||
interface Configuration { | ||
googleAnalytics?: InstallOptions | ||
} | ||
} | ||
|
||
declare module 'vue/types/vue' { | ||
interface Vue { | ||
$ga: VueAnalytics | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type VueAnalytics from 'vue-analytics' | ||
|
||
declare module 'vuex' { | ||
interface Store<S> { | ||
$ga: VueAnalytics, | ||
} | ||
} |