Closed jherdman closed 2 years ago
Correction: I see this merely by moving to v6.9
@jherdman great suggestion, will follow up in the PR.
@jherdman just wanted to circle back to ask if you were still encountering these issues?
Confirmed! Many thanks.
Package + Version
@sentry/browser
:@sentry/node
raven-js
raven-node
(raven for node)@sentry/ember
Version:
Description
In upgrading an application using
@sentry/ember
v6.6.0 to v6.15 we ran into some peculiar type regressions. Here's a snippet of our code that worked before:Using v6.6.0 this code works, but suddenly, when v6.10 (or later), is introduced we see the type for
assert
fail.I'm not entirely sure this is the problem, but this is a bit of a smoking gun:
https://github.com/getsentry/sentry-javascript/blob/a72ea443ffb45657a9e52b37c35f5c005e176463/packages/ember/addon/index.ts#L11-L13
Note that this typing differs from the DefinitelyTyped version:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/4a4f37536cec0d38819acd9015600de7715ac6b3/types/ember__debug/index.d.ts#L10-L14
I believe that If you were to use the
@types/ember__debug
package instead of rolling your own type this problem should be resolved.