-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Conversation
// We want to avoid repeating the whole type definition here... | ||
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type |
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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)
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
size-limit report 📦
|
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.