bugsnag-js icon indicating copy to clipboard operation
bugsnag-js copied to clipboard

Export BrowserBugsnagStatic

Open mdentremont opened this issue 1 year ago • 4 comments

Goal

  • Allows the correct type to be imported in projects which use bugsnag

mdentremont avatar Feb 23 '23 13:02 mdentremont

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);
      },
    );

mdentremont avatar Feb 23 '23 13:02 mdentremont

Hi @mdentremont, Thanks for the PR, we will look to review as soon as priorities allows.

johnkiely1 avatar Feb 27 '23 14:02 johnkiely1

@johnkiely1 Any chance this'll get in soonish?

mdentremont avatar Jun 28 '23 22:06 mdentremont

Hi @mdentremont, we don't have a definitive ETA as of yet but we are hoping to get to this soon.

johnkiely1 avatar Jun 30 '23 14:06 johnkiely1

@johnkiely1 Any chance you'd like to sneak this in now?

mdentremont avatar Apr 03 '24 17:04 mdentremont

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.

clr182 avatar Apr 05 '24 13:04 clr182

Superseded by https://github.com/bugsnag/bugsnag-js/pull/2112 (so we can run this through CI and get it merged)

djskinner avatar Apr 05 '24 16:04 djskinner