We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7da3897 commit c2bea43Copy full SHA for c2bea43
packages/nuxt/src/common/types.ts
@@ -4,8 +4,9 @@ import type { SentryVitePluginOptions } from '@sentry/vite-plugin';
4
import type { init as initVue } from '@sentry/vue';
5
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
8
export type SentryNuxtClientOptions = Omit<Parameters<typeof initVue>[0] & object, 'app'>;
-export type SentryNuxtServerOptions = Parameters<typeof initNode>[0];
9
+export type SentryNuxtServerOptions = Parameters<typeof initNode>[0] & object;
10
11
type SourceMapsOptions = {
12
/**
0 commit comments