@@ -56,7 +56,7 @@ export class TryCatch implements Integration {
5656 /**
5757 * @inheritDoc
5858 */
59- public static id : string = 'TryCatch' ;
59+ public static id = 'TryCatch' ;
6060
6161 /** JSDoc */
6262 private readonly _options : TryCatchOptions ;
@@ -77,6 +77,7 @@ export class TryCatch implements Integration {
7777
7878 /** JSDoc */
7979 private _wrapTimeFunction ( original : ( ) => void ) : ( ) => number {
80+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
8081 return function ( this : any , ...args : any [ ] ) : number {
8182 const originalCallback = args [ 0 ] ;
8283 args [ 0 ] = wrap ( originalCallback , {
@@ -91,7 +92,9 @@ export class TryCatch implements Integration {
9192 }
9293
9394 /** JSDoc */
95+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9496 private _wrapRAF ( original : any ) : ( callback : ( ) => void ) => any {
97+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9598 return function ( this : any , callback : ( ) => void ) : ( ) => void {
9699 return original . call (
97100 this ,
@@ -111,6 +114,7 @@ export class TryCatch implements Integration {
111114
112115 /** JSDoc */
113116 private _wrapEventTarget ( target : string ) : void {
117+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
114118 const global = getGlobalObject ( ) as { [ key : string ] : any } ;
115119 const proto = global [ target ] && global [ target ] . prototype ;
116120
@@ -122,6 +126,7 @@ export class TryCatch implements Integration {
122126 original : ( ) => void ,
123127 ) : ( eventName : string , fn : EventListenerObject , options ?: boolean | AddEventListenerOptions ) => void {
124128 return function (
129+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
125130 this : any ,
126131 eventName : string ,
127132 fn : EventListenerObject ,
@@ -149,6 +154,7 @@ export class TryCatch implements Integration {
149154 return original . call (
150155 this ,
151156 eventName ,
157+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
152158 wrap ( ( fn as any ) as WrappedFunction , {
153159 mechanism : {
154160 data : {
@@ -167,8 +173,10 @@ export class TryCatch implements Integration {
167173
168174 fill ( proto , 'removeEventListener' , function (
169175 original : ( ) => void ,
176+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
170177 ) : ( this : any , eventName : string , fn : EventListenerObject , options ?: boolean | EventListenerOptions ) => ( ) => void {
171178 return function (
179+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
172180 this : any ,
173181 eventName : string ,
174182 fn : EventListenerObject ,
@@ -203,13 +211,16 @@ export class TryCatch implements Integration {
203211
204212 /** JSDoc */
205213 private _wrapXHR ( originalSend : ( ) => void ) : ( ) => void {
214+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
206215 return function ( this : XMLHttpRequest , ...args : any [ ] ) : void {
207- const xhr = this ; // tslint:disable-line:no-this-assignment
216+ // eslint-disable-next-line @typescript-eslint/no-this-alias
217+ const xhr = this ;
208218 const xmlHttpRequestProps : XMLHttpRequestProp [ ] = [ 'onload' , 'onerror' , 'onprogress' , 'onreadystatechange' ] ;
209219
210220 xmlHttpRequestProps . forEach ( prop => {
211221 if ( prop in xhr && typeof xhr [ prop ] === 'function' ) {
212- fill ( xhr , prop , function ( original : WrappedFunction ) : Function {
222+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
223+ fill ( xhr , prop , function ( original : WrappedFunction ) : ( ) => any {
213224 const wrapOptions = {
214225 mechanism : {
215226 data : {
0 commit comments