UNPKG

420 BTypeScriptView Raw
1import { Client, BrowserConfig, BugsnagStatic } from '@bugsnag/browser'
2import { NodeConfig } from '@bugsnag/node'
3
4interface UniversalBugsnagStatic extends BugsnagStatic {
5 start(apiKeyOrOpts: string | BrowserConfig | NodeConfig): Client
6 createClient(apiKeyOrOpts: string | BrowserConfig | NodeConfig): Client
7}
8
9declare const Bugsnag: UniversalBugsnagStatic
10
11export default Bugsnag
12export * from '@bugsnag/browser'