@@ -28,7 +28,7 @@ export class Angular implements Integration {
2828 /**
2929 * Angular's instance
3030 */
31- private readonly _angular : ng . IAngularStatic ;
31+ private readonly _angular : any ;
3232
3333 /**
3434 * Returns current hub.
@@ -38,9 +38,9 @@ export class Angular implements Integration {
3838 /**
3939 * @inheritDoc
4040 */
41- public constructor ( options : { angular ?: ng . IAngularStatic } = { } ) {
41+ public constructor ( options : { angular ?: any } = { } ) {
4242 // tslint:disable-next-line: no-unsafe-any
43- this . _angular = options . angular || ( getGlobalObject ( ) . angular as ng . IAngularStatic ) ;
43+ this . _angular = options . angular || getGlobalObject ( ) . angular ;
4444 }
4545
4646 /**
@@ -54,18 +54,21 @@ export class Angular implements Integration {
5454
5555 this . _getCurrentHub = getCurrentHub ;
5656
57+ // tslint:disable: no-unsafe-any
5758 this . _angular . module ( Angular . moduleName , [ ] ) . config ( [
5859 '$provide' ,
59- ( $provide : ng . auto . IProvideService ) => {
60+ ( $provide : any ) => {
6061 $provide . decorator ( '$exceptionHandler' , [ '$delegate' , this . _$exceptionHandlerDecorator . bind ( this ) ] ) ;
6162 } ,
6263 ] ) ;
64+ // tslint:enable: no-unsafe-any
6365 }
6466
6567 /**
6668 * Angular's exceptionHandler for Sentry integration
6769 */
68- private _$exceptionHandlerDecorator ( $delegate : ng . IExceptionHandlerService ) : ng . IExceptionHandlerService {
70+ // tslint:disable-next-line: no-unsafe-any
71+ private _$exceptionHandlerDecorator ( $delegate : any ) : any {
6972 return ( exception : Error , cause ?: string ) => {
7073 const hub = this . _getCurrentHub && this . _getCurrentHub ( ) ;
7174
@@ -100,6 +103,7 @@ export class Angular implements Integration {
100103 hub . captureException ( exception ) ;
101104 } ) ;
102105 }
106+ // tslint:disable-next-line: no-unsafe-any
103107 $delegate ( exception , cause ) ;
104108 } ;
105109 }
0 commit comments