File tree Expand file tree Collapse file tree
packages/plugin-angular/src/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { ErrorHandler , VERSION } from '@angular/core'
2- import Bugsnag , { Client } from '@bugsnag/js'
2+ import type { Client } from '@bugsnag/core'
3+ import Bugsnag from '@bugsnag/js'
34
45type BugsnagWithInternals = typeof Bugsnag & {
56 _client : Client | null
Original file line number Diff line number Diff line change 1- import { ErrorHandler } from '@angular/core'
2- import { Client , Event , Plugin } from '@bugsnag/js'
1+ import type { ErrorHandler } from '@angular/core'
2+ import type { Plugin } from '@bugsnag/core'
3+ import type { Event } from '@bugsnag/js'
34import BugsnagErrorHandler from './bugsnag-error-handler'
45
56// angular uses zones to watch for changes in asynchronous tasks so it can
@@ -16,7 +17,7 @@ const isNgZoneEnabled = typeof Zone !== 'undefined' && !!Zone.current
1617
1718const plugin : Plugin = {
1819 name : 'Angular' ,
19- load : ( client : Client ) : ErrorHandler => {
20+ load : ( client ) : ErrorHandler => {
2021 const originalNotify = client . _notify
2122 client . _notify = function ( ) {
2223 const event = arguments as unknown as Event
You can’t perform that action at this time.
0 commit comments