diff --git a/packages/sveltekit/src/index.types.ts b/packages/sveltekit/src/index.types.ts index 63345e81ccab..3b2393ea4d15 100644 --- a/packages/sveltekit/src/index.types.ts +++ b/packages/sveltekit/src/index.types.ts @@ -17,9 +17,7 @@ import type * as serverSdk from './server'; /** Initializes Sentry SvelteKit SDK */ export declare function init(options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions): void; -export declare function handleErrorWithSentry( - handleError?: T, -): ReturnType; +export declare function handleErrorWithSentry(handleError?: T): T; /** * Wrap a universal load function (e.g. +page.js or +layout.js) with Sentry functionality