You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd rather deprecate this function and remove it in v8, given that this function is not documented anywhere and it's not used by SDKs inheriting from Browser. (also checked RN, Electron, Cordova and Capacitor SDKs)
Problem Statement
TIL: In the browser SDK, we export a
wrap
function that people can wrap around any function call.It'll try/catch whatever happens inside and report an error to Sentry (using our internal
wrap
function). This function is typed withany
.sentry-javascript/packages/browser/src/sdk.ts
Lines 200 to 203 in b618a52
Solution Brainstorm
We should rewrite the type here to use generics:
We can now add the newly typed function and deprecate the
any
-typed one to remove in v8Alternative
Deprecate the function and remove it? I never saw this before and afaict it's not documented anywhere.
The text was updated successfully, but these errors were encountered: