-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ref(browser): Don't use Breadcrumbs integration in send event flow #5024
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -258,6 +258,15 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> { | |||||
} | ||||||
} | ||||||
|
||||||
/** | ||||||
* Gets an installed integration by its `id`. | ||||||
* | ||||||
* @returns The installed integration or `undefined` if no integration with that `id` was installed. | ||||||
*/ | ||||||
public getIntegrationById(integrationId: string): Integration | undefined { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you think about making this should be generic over an Integration? This means the caller can define the value without needing a cast.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Honestly, I do not like it. I do not want to help people to disable TS checks. If you are sure that your code is right go ahead and cast it, because that is way more explicitly saying that you're doing some dangerous stuff than using a generic, which kind of hides the danger... |
||||||
return this._integrations[integrationId]; | ||||||
} | ||||||
|
||||||
/** | ||||||
* @inheritDoc | ||||||
*/ | ||||||
|
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.
This now means that
options
cannot be minified - but I guess not the end of the world.