11import 'vue'
22import 'vuex'
33import '@nuxt/types'
4- import * as SentryTypes from '@sentry/core '
4+ import { Client } from '@sentry/types '
55import { DeepPartialModuleConfiguration } from './configuration'
66
77export type ModulePublicRuntimeConfig = Pick < DeepPartialModuleConfiguration , 'config' | 'clientConfig' | 'serverConfig' >
88
99// add type to Vue context
1010declare module 'vue/types/vue' {
1111 interface Vue {
12- readonly $sentry : typeof SentryTypes
12+ readonly $sentry : Client
1313 $sentryLoad ( ) : Promise < void >
14- $sentryReady ( ) : Promise < typeof SentryTypes >
14+ $sentryReady ( ) : Promise < Client >
1515 }
1616}
1717
1818// App Context and NuxtAppOptions
1919declare module '@nuxt/types' {
2020 interface Context {
21- readonly $sentry : typeof SentryTypes
21+ readonly $sentry : Client
2222 $sentryLoad ( ) : Promise < void >
23- $sentryReady ( ) : Promise < typeof SentryTypes >
23+ $sentryReady ( ) : Promise < Client >
2424 }
2525
2626 interface NuxtOptions {
2727 sentry ?: DeepPartialModuleConfiguration
2828 }
2929
3030 interface NuxtAppOptions {
31- readonly $sentry : typeof SentryTypes
31+ readonly $sentry : Client
3232 $sentryLoad ( ) : Promise < void >
33- $sentryReady ( ) : Promise < typeof SentryTypes >
33+ $sentryReady ( ) : Promise < Client >
3434 }
3535}
3636
@@ -43,8 +43,16 @@ declare module '@nuxt/types/config/runtime' {
4343// add types for Vuex Store
4444declare module 'vuex/types' {
4545 interface Store < S > {
46- readonly $sentry : typeof SentryTypes
46+ readonly $sentry : Client
4747 $sentryLoad ( ) : Promise < void >
48- $sentryReady ( ) : Promise < typeof SentryTypes >
48+ $sentryReady ( ) : Promise < Client >
49+ }
50+ }
51+
52+ declare global {
53+ namespace NodeJS {
54+ interface Process {
55+ sentry : Client
56+ }
4957 }
5058}
0 commit comments