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 */
1
2
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
2
3
import { Event , EventProcessor , Hub , Integration } from '@sentry/types' ;
3
4
import { getGlobalObject , logger , normalize , uuid4 } from '@sentry/utils' ;
4
5
import localForage from 'localforage' ;
5
6
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
+
6
16
/**
7
17
* cache offline errors and send when connected
8
18
*/
@@ -36,7 +46,7 @@ export class Offline implements Integration {
36
46
/**
37
47
* event cache
38
48
*/
39
- public offlineEventStore : typeof localForage ;
49
+ public offlineEventStore : LocalForage ;
40
50
41
51
/**
42
52
* @inheritDoc
You can’t perform that action at this time.
0 commit comments