bugsnag-js
bugsnag-js copied to clipboard
Export BrowserBugsnagStatic
Goal
- Allows the correct type to be imported in projects which use bugsnag
Our project had some code like this and we wanted to change trackInlineScript, but the "browser" exported bugsnag variable doesn't export its type:
const bugsnagClientPromise = new Promise<BugsnagStatic>(
(resolve) => {
const bugsnag = require('@bugsnag/js');
return resolve(bugsnag);
},
);
Hi @mdentremont, Thanks for the PR, we will look to review as soon as priorities allows.
@johnkiely1 Any chance this'll get in soonish?
Hi @mdentremont, we don't have a definitive ETA as of yet but we are hoping to get to this soon.
@johnkiely1 Any chance you'd like to sneak this in now?
Hi @mdentremont
Unfortunately we have no update as it stands. Once we have more information to share we will be sure to update this thread and inform you.
Superseded by https://github.com/bugsnag/bugsnag-js/pull/2112 (so we can run this through CI and get it merged)