UNPKG

623 BTypeScriptView Raw
1import * as SentryTypes from '@sentry/minimal'
2import { ModuleConfiguration } from './sentry'
3
4// add type to Vue context
5declare module 'vue/types/vue' {
6 interface Vue {
7 readonly $sentry: typeof SentryTypes
8 }
9}
10
11// App Context and NuxtAppOptions
12declare module '@nuxt/types' {
13 interface Context {
14 readonly $sentry: typeof SentryTypes
15 }
16
17 interface NuxtAppOptions {
18 readonly $sentry: typeof SentryTypes
19 }
20
21 interface NuxtOptions {
22 sentry?: ModuleConfiguration
23 }
24}
25
26// add types for Vuex Store
27declare module 'vuex/types' {
28 interface Store<S> {
29 readonly $sentry: typeof SentryTypes
30 }
31}