Skip to content

Commit c2bea43

Browse files
committed
fix type error
1 parent 7da3897 commit c2bea43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/nuxt/src/common/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import type { SentryVitePluginOptions } from '@sentry/vite-plugin';
44
import type { init as initVue } from '@sentry/vue';
55

66
// 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
78
export type SentryNuxtClientOptions = Omit<Parameters<typeof initVue>[0] & object, 'app'>;
8-
export type SentryNuxtServerOptions = Parameters<typeof initNode>[0];
9+
export type SentryNuxtServerOptions = Parameters<typeof initNode>[0] & object;
910

1011
type SourceMapsOptions = {
1112
/**

0 commit comments

Comments
 (0)