Skip to content

Commit 36c0e4b

Browse files
authored
fix: offline integration type as any (#2864)
1 parent 5a4838e commit 36c0e4b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/integrations/src/offline.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
12
import { Event, EventProcessor, Hub, Integration } from '@sentry/types';
23
import { getGlobalObject, logger, uuid4 } from '@sentry/utils';
34
import * as localForageType from 'localforage';
@@ -21,7 +22,8 @@ export class Offline implements Integration {
2122
/**
2223
* the global instance
2324
*/
24-
public global: Window;
25+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
26+
public global: any;
2527

2628
/**
2729
* the current hub instance
@@ -42,7 +44,8 @@ export class Offline implements Integration {
4244
* @inheritDoc
4345
*/
4446
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>();
4649
this.maxStoredEvents = options.maxStoredEvents || 30; // set a reasonable default
4750
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
4851
this.offlineEventStore = localForage.createInstance({

0 commit comments

Comments
 (0)