Skip to content

Commit

Permalink
fix(integrations): Add localforage typing (#2856)
Browse files Browse the repository at this point in the history
Co-authored-by: Rodolfo Carvalho <rodolfo.carvalho@sentry.io>
  • Loading branch information
AbhiPrasad and rhcarvalho authored Aug 28, 2020
1 parent 1038bbe commit b62a4d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/integrations/src/offline.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Event, EventProcessor, Hub, Integration } from '@sentry/types';
import { getGlobalObject, logger, uuid4 } from '@sentry/utils';
// @ts-ignore: Module '"localforage"' has no default export.
import localforage from 'localforage';
import * as localForage from 'localforage';

/**
* cache offline errors and send when connected
Expand Down Expand Up @@ -43,7 +42,7 @@ export class Offline implements Integration {
public constructor(options: { maxStoredEvents?: number } = {}) {
this.global = getGlobalObject<Window>();
this.maxStoredEvents = options.maxStoredEvents || 30; // set a reasonable default
this.offlineEventStore = localforage.createInstance({
this.offlineEventStore = localForage.createInstance({
name: 'sentry/offlineEventStore',
});

Expand Down

0 comments on commit b62a4d3

Please sign in to comment.