File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ import type { SentryRollupPluginOptions } from '@sentry/rollup-plugin';
33import type { SentryVitePluginOptions } from '@sentry/vite-plugin' ;
44import type { init as initVue } from '@sentry/vue' ;
55
6- // Omitting 'app' as the Nuxt SDK will add the app instance in the client plugin (users do not have to provide this)
6+ // Omitting Vue 'app' as the Nuxt SDK will add the app instance in the client plugin (users do not have to provide this)
7+ // Adding `& object` helps TS with inferring that this is not `undefined` but an object type
78export type SentryNuxtClientOptions = Omit < Parameters < typeof initVue > [ 0 ] & object , 'app' > ;
8- export type SentryNuxtServerOptions = Omit < Parameters < typeof initNode > [ 0 ] & object , 'app' > ;
9+ export type SentryNuxtServerOptions = Parameters < typeof initNode > [ 0 ] & object ;
910
1011type SourceMapsOptions = {
1112 /**
Original file line number Diff line number Diff line change 11import type { Client , Integration , Options , StackParser } from '@sentry/core' ;
2- import type { SentryNuxtClientOptions } from './common/types' ;
2+ import type { SentryNuxtClientOptions , SentryNuxtServerOptions } from './common/types' ;
33import type * as clientSdk from './index.client' ;
4- import type * as serverSdk from './index.server' ;
54
65// We export everything from both the client part of the SDK and from the server part. Some of the exports collide,
76// which is not allowed, unless we re-export the colliding exports in this file - which we do below.
87export * from './index.client' ;
98export * from './index.server' ;
109
1110// re-export colliding types
12- export declare function init ( options : Options | SentryNuxtClientOptions | serverSdk . NodeOptions ) : Client | undefined ;
11+ export declare function init ( options : Options | SentryNuxtClientOptions | SentryNuxtServerOptions ) : Client | undefined ;
1312export declare const linkedErrorsIntegration : typeof clientSdk . linkedErrorsIntegration ;
1413export declare const contextLinesIntegration : typeof clientSdk . contextLinesIntegration ;
1514export declare const getDefaultIntegrations : ( options : Options ) => Integration [ ] ;
You can’t perform that action at this time.
0 commit comments