Skip to content

fix(feedback): Fix feedback type #11787

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 26, 2024
Merged

fix(feedback): Fix feedback type #11787

merged 4 commits into from
Apr 26, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Apr 25, 2024

Noticed this while bumping sentry itself - the types are wrong today, because we return it as IntegrationFn which is just a generic integration with no custom methods.

@mydea mydea requested review from billyvg, ryan953, Lms24 and s1gr1d April 25, 2024 12:59
@mydea mydea self-assigned this Apr 25, 2024
Comment on lines 49 to 50
// We want to avoid repeating the whole type definition here...
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: We could just create a FeedbackIntegration type that extends the Integration interface instead, to avoid the eslint-disable here, no? No strong feelings though, feel free to merge as-is!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right, this is better. I added a proper type! (had to inline it because otherwise TS complains somehow again... but it works)

mydea and others added 2 commits April 25, 2024 15:24
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
Copy link
Contributor

size-limit report 📦

Path Size
@sentry/browser 21.65 KB (0%)
@sentry/browser (incl. Tracing) 32.63 KB (-0.17% 🔽)
@sentry/browser (incl. Tracing, Replay) 67.98 KB (-0.08% 🔽)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 61.37 KB (-0.1% 🔽)
@sentry/browser (incl. Tracing, Replay with Canvas) 72.02 KB (-0.08% 🔽)
@sentry/browser (incl. Tracing, Replay, Feedback) 84.23 KB (-0.06% 🔽)
@sentry/browser (incl. Feedback) 37.79 KB (0%)
@sentry/browser (incl. sendFeedback) 26.43 KB (0%)
@sentry/browser (incl. FeedbackAsync) 30.93 KB (0%)
@sentry/react 24.33 KB (0%)
@sentry/react (incl. Tracing) 35.53 KB (-0.33% 🔽)
@sentry/vue 25.27 KB (-0.83% 🔽)
@sentry/vue (incl. Tracing) 34.38 KB (-0.28% 🔽)
@sentry/svelte 21.77 KB (0%)
CDN Bundle 23.95 KB (0%)
CDN Bundle (incl. Tracing) 33.89 KB (-0.23% 🔽)
CDN Bundle (incl. Tracing, Replay) 67.61 KB (-0.09% 🔽)
CDN Bundle (incl. Tracing, Replay, Feedback) 83.46 KB (-0.11% 🔽)
CDN Bundle - uncompressed 70.56 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 100.57 KB (-0.36% 🔽)
CDN Bundle (incl. Tracing, Replay) - uncompressed 210.18 KB (-0.17% 🔽)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 256.57 KB (-0.14% 🔽)
@sentry/nextjs (client) 34.75 KB (-0.33% 🔽)
@sentry/sveltekit (client) 33.13 KB (-0.33% 🔽)
@sentry/node 138.48 KB (0%)

@mydea mydea merged commit 79818ff into develop Apr 26, 2024
@mydea mydea deleted the fn/fix-feedback-type branch April 26, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants