File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/integrations/src Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
1
2
import { Event , EventProcessor , Hub , Integration } from '@sentry/types' ;
2
3
import { getGlobalObject , logger , uuid4 } from '@sentry/utils' ;
3
4
import * as localForageType from 'localforage' ;
@@ -21,7 +22,8 @@ export class Offline implements Integration {
21
22
/**
22
23
* the global instance
23
24
*/
24
- public global : Window ;
25
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
26
+ public global : any ;
25
27
26
28
/**
27
29
* the current hub instance
@@ -42,7 +44,8 @@ export class Offline implements Integration {
42
44
* @inheritDoc
43
45
*/
44
46
public constructor ( options : { maxStoredEvents ?: number } = { } ) {
45
- this . global = getGlobalObject < Window > ( ) ;
47
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
48
+ this . global = getGlobalObject < any > ( ) ;
46
49
this . maxStoredEvents = options . maxStoredEvents || 30 ; // set a reasonable default
47
50
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
48
51
this . offlineEventStore = localForage . createInstance ( {
You can’t perform that action at this time.
0 commit comments