diff --git a/packages/types/src/scope.ts b/packages/types/src/scope.ts index d53d525d8af8..8444dd9398bc 100644 --- a/packages/types/src/scope.ts +++ b/packages/types/src/scope.ts @@ -13,8 +13,8 @@ export type CaptureContext = Scope | Partial | ((scope: Scope) => export interface ScopeContext { user: User; level: Severity; - extra: { [key: string]: any }; - contexts: { [key: string]: Record }; + extra: { [key: string]: unknown }; + contexts: { [key: string]: Record }; tags: { [key: string]: string }; fingerprint: string[]; } @@ -82,7 +82,7 @@ export interface Scope { * @param name of the context * @param context Any kind of data. This data will be normailzed. */ - setContext(name: string, context: { [key: string]: any } | null): this; + setContext(name: string, context: Record | null): this; /** * Sets the Span on the scope.