Closed clarkdave closed 2 years ago
:tada: This issue is included in version core@6.0.1 :tada:
The release is available on GitHub release
:tada: This issue is included in version browser@6.0.1 :tada:
The release is available on GitHub release
:tada: This issue is included in version angular@6.1.4 :tada:
The release is available on GitHub release
🚀 Feature request
Currently
Severity
is exported as aconst enum
.It's increasingly common to build TypeScript projects using Babel, esbuild or swc, which do not support
const enum
. This makes it awkward to call methods likeaddBreadcrumb
, because they expect aSeverity
, but that cannot be imported so some type asserting must happen instead, e.g.level: 'warning' as any
Alternatively, removing the enum entirely in favour of a string literal union would also work - this is also the approach the official Sentry SDK is using as of v7.