import * as SentryTypes from '@sentry/minimal' import { ModuleConfiguration } from './sentry' // add type to Vue context declare module 'vue/types/vue' { interface Vue { readonly $sentry: typeof SentryTypes } } // App Context and NuxtAppOptions declare module '@nuxt/types' { interface Context { readonly $sentry: typeof SentryTypes } interface NuxtAppOptions { readonly $sentry: typeof SentryTypes } interface NuxtOptions { sentry?: ModuleConfiguration } } // add types for Vuex Store declare module 'vuex/types' { interface Store { readonly $sentry: typeof SentryTypes } }