@sentry/browser
@sentry/node
raven-js
raven-node
_(raven for node)_5.3.0
I'm using TypeScript without a module loader (tsconfig: "module": "None"
). What .d.ts
file should I use to prevent the following error?
I took a look at the @sentry/core
and @sentry/types
packages, but I couldn't find a file that declares a global "Sentry" variable.
I figured it out. All I had to do was to create a new .d.ts
file with the following line:
declare const Sentry: import("@sentry/browser").BrowserClient;
Thanks.
I think it is better to declare it this way:
declare const Sentry:typeof import("@sentry/browser");
This way you have all the functions (like configureScope for example)
Most helpful comment
Thanks.
I think it is better to declare it this way:
declare const Sentry:typeof import("@sentry/browser");
This way you have all the functions (like configureScope for example)