Skip to content

Commit 868a20e

Browse files
committed
fix(feedback): Update typing for v7
1 parent 17744cd commit 868a20e

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
- **feat(performance): create Interaction standalone spans on inp events (#10709)**
1212

13-
This release adds support for the INP web vital. This is currently only supported for Saas Sentry, and product support is released with
14-
the upcoming `24.3.0` release of self-hosted.
13+
This release adds support for the INP web vital. This is currently only supported for Saas Sentry, and product support
14+
is released with the upcoming `24.3.0` release of self-hosted.
1515

1616
To opt-in to this feature, you can use the `enableInp` option in the `browserTracingIntegration`:
1717

packages/feedback/src/util/sendFeedbackRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ export async function sendFeedbackRequest(
4242
}
4343

4444
const feedbackEvent = await prepareFeedbackEvent({
45-
scope,
45+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
46+
scope: scope as any,
4647
client,
4748
event: baseEvent,
4849
});

packages/feedback/src/widget/createWidget.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ export function createWidget({
132132
function handleOpenDialog(): void {
133133
// Flush replay if integration exists
134134
const client = getClient();
135-
const replay = client && client.getIntegrationByName<{ name: string; flush: () => Promise<void> }>('Replay');
135+
const replay =
136+
client &&
137+
client.getIntegrationByName &&
138+
client.getIntegrationByName<{ name: string; flush: () => Promise<void>; setupOnce: () => void }>('Replay');
136139
if (!replay) {
137140
return;
138141
}

0 commit comments

Comments
 (0)