Skip to content
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

@sentry/browser root captureException & captureMessage arg types update #4211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

emcelyea
Copy link

captureMessage & captureException exist on the root of Sentry and also at the Hub & Scope level. We currently type all instances as if they were Hub.captureException instead of Sentry.captureException.

Hub captureException docs:
https://getsentry.github.io/sentry-javascript/interfaces/types.hub-1.html#captureexception

root captureException docs:
https://getsentry.github.io/sentry-javascript/modules/minimal.html#captureexception

This updates the root captureMessage/Exception arguments:

captureMessage & captureException exist on the root of Sentry and also at the Hub level. We currently type all instances as if they were on the Hub.
https://getsentry.github.io/sentry-javascript/interfaces/types.hub-1.html#captureexception

This updates the root captureMessage/Exception arguments:
https://getsentry.github.io/sentry-javascript/modules/minimal.html#captureexception
@emcelyea emcelyea changed the title root captureException & captureMessage arg types update @sentry/browser root captureException & captureMessage arg types update Dec 29, 2021
@Brianzchen
Copy link
Member

Looks like some tests have failed, they could be fixed but also some additional tests to secure your work would be great!

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.

None yet

2 participants