Skip to content

Commit

Permalink
fix: offline integration type as any (#2864)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad authored Aug 28, 2020
1 parent 5a4838e commit 36c0e4b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/integrations/src/offline.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
import { Event, EventProcessor, Hub, Integration } from '@sentry/types';
import { getGlobalObject, logger, uuid4 } from '@sentry/utils';
import * as localForageType from 'localforage';
Expand All @@ -21,7 +22,8 @@ export class Offline implements Integration {
/**
* the global instance
*/
public global: Window;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
public global: any;

/**
* the current hub instance
Expand All @@ -42,7 +44,8 @@ export class Offline implements Integration {
* @inheritDoc
*/
public constructor(options: { maxStoredEvents?: number } = {}) {
this.global = getGlobalObject<Window>();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this.global = getGlobalObject<any>();
this.maxStoredEvents = options.maxStoredEvents || 30; // set a reasonable default
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
this.offlineEventStore = localForage.createInstance({
Expand Down

0 comments on commit 36c0e4b

Please sign in to comment.