File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
packages/integrations/src Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ /* eslint-disable @typescript-eslint/no-explicit-any */
12/* eslint-disable @typescript-eslint/no-unsafe-member-access */
23import { Event , EventProcessor , Hub , Integration } from '@sentry/types' ;
34import { getGlobalObject , logger , normalize , uuid4 } from '@sentry/utils' ;
45import localForage from 'localforage' ;
56
7+ type LocalForage = {
8+ setItem < T > ( key : string , value : T , callback ?: ( err : any , value : T ) => void ) : Promise < T > ;
9+ iterate < T , U > (
10+ iteratee : ( value : T , key : string , iterationNumber : number ) => U ,
11+ callback ?: ( err : any , result : U ) => void ,
12+ ) : Promise < U > ;
13+ removeItem ( key : string , callback ?: ( err : any ) => void ) : Promise < void > ;
14+ } ;
15+
616/**
717 * cache offline errors and send when connected
818 */
@@ -36,7 +46,7 @@ export class Offline implements Integration {
3646 /**
3747 * event cache
3848 */
39- public offlineEventStore : typeof localForage ;
49+ public offlineEventStore : LocalForage ;
4050
4151 /**
4252 * @inheritDoc
You can’t perform that action at this time.
0 commit comments