Skip to content

Commit 1530509

Browse files
committed
fix types due to #10183
1 parent b87f421 commit 1530509

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/replay-canvas/src/canvas.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { CanvasManager } from '@sentry-internal/rrweb';
22
import { convertIntegrationFnToClass } from '@sentry/core';
33
import type { CanvasManagerInterface, CanvasManagerOptions } from '@sentry/replay';
4-
import type { IntegrationFn } from '@sentry/types';
4+
import type { Integration, IntegrationClass, IntegrationFn } from '@sentry/types';
55

66
interface ReplayCanvasOptions {
77
quality: 'low' | 'medium' | 'high';
@@ -78,4 +78,8 @@ const replayCanvasIntegration = ((options: Partial<ReplayCanvasOptions> = {}) =>
7878

7979
// TODO(v8)
8080
// eslint-disable-next-line deprecation/deprecation
81-
export const ReplayCanvas = convertIntegrationFnToClass(INTEGRATION_NAME, replayCanvasIntegration);
81+
export const ReplayCanvas = convertIntegrationFnToClass(INTEGRATION_NAME, replayCanvasIntegration) as IntegrationClass<
82+
Integration & {
83+
getOptions: () => ReplayCanvasIntegrationOptions
84+
}
85+
>;

0 commit comments

Comments
 (0)