File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class Scope implements ScopeInterface {
40
40
protected _tags : { [ key : string ] : string } = { } ;
41
41
42
42
/** Extra */
43
- protected _extra : { [ key : string ] : unknown } = { } ;
43
+ protected _extra : Extras = { } ;
44
44
45
45
/** Contexts */
46
46
protected _contexts : { [ key : string ] : Record < string , unknown > } = { } ;
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ export type CaptureContext = Scope | Partial<ScopeContext> | ((scope: Scope) =>
13
13
export interface ScopeContext {
14
14
user : User ;
15
15
level : Severity ;
16
- extra : { [ key : string ] : any } ;
17
- contexts : { [ key : string ] : Record < any , any > } ;
16
+ extra : Extras ;
17
+ contexts : { [ key : string ] : Record < string , unknown > } ;
18
18
tags : { [ key : string ] : string } ;
19
19
fingerprint : string [ ] ;
20
20
}
@@ -82,7 +82,7 @@ export interface Scope {
82
82
* @param name of the context
83
83
* @param context Any kind of data. This data will be normailzed.
84
84
*/
85
- setContext ( name : string , context : { [ key : string ] : any } | null ) : this;
85
+ setContext ( name : string , context : Record < string , unknown > | null ) : this;
86
86
87
87
/**
88
88
* Sets the Span on the scope.
You can’t perform that action at this time.
0 commit comments