Skip to content

Commit 4570508

Browse files
Lms24billyvg
authored andcommitted
fix(remix): Export Integration type declaration as union type (#8016)
Change the isomorphic type declarations of `Sentry.Integrations` to a union type rather than an object. This stops `tsc` from resolving the types of the individual integration types which caused errors due to incorrect path resolvings of dependencies of `@sentry/remix`. With this change we now declare `Sentry.Integrations` in Remix identically to how we do it in NextJS and SvelteKit.
1 parent af921e0 commit 4570508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/remix/src/index.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import type { RemixOptions } from './utils/remixOptions';
1515
export declare function init(options: RemixOptions): void;
1616

1717
// We export a merged Integrations object so that users can (at least typing-wise) use all integrations everywhere.
18-
export const Integrations = { ...clientSdk.Integrations, ...serverSdk.Integrations };
18+
export declare const Integrations: typeof clientSdk.Integrations & typeof serverSdk.Integrations;
1919

2020
export declare const defaultIntegrations: Integration[];
2121
export declare const defaultStackParser: StackParser;

0 commit comments

Comments
 (0)