From d17146a33e76845c9ff88c883f47c26d7aca6bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Og=C3=B3rek?= Date: Tue, 29 Sep 2020 17:00:51 +0200 Subject: [PATCH] Use Record in scope type as well --- packages/types/src/scope.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.