UNPKG

@bugsnag/js

Version:

Universal Javascript error reporting. Automatically detect JavaScript errors in the browser and Node.js, with plugins for React, Vue, Angular, Express, Restify and Koa.

13 lines (9 loc) 420 B
import { Client, BrowserConfig, BugsnagStatic } from '@bugsnag/browser' import { NodeConfig } from '@bugsnag/node' interface UniversalBugsnagStatic extends BugsnagStatic { start(apiKeyOrOpts: string | BrowserConfig | NodeConfig): Client createClient(apiKeyOrOpts: string | BrowserConfig | NodeConfig): Client } declare const Bugsnag: UniversalBugsnagStatic export default Bugsnag export * from '@bugsnag/browser'