@@ -19,7 +19,6 @@ import { GLOBAL_OBJ, isThenable, logger, timestampInSeconds, uuid4 } from '@sent
1919import { DEFAULT_ENVIRONMENT } from './constants' ;
2020import { getClient , getCurrentScope , getIsolationScope } from './currentScopes' ;
2121import { DEBUG_BUILD } from './debug-build' ;
22- import type { Hub } from './hub' ;
2322import { closeSession , makeSession , updateSession } from './session' ;
2423import type { ExclusiveEventHintOrCaptureContext } from './utils/prepareEvent' ;
2524import { parseEventHintOrCaptureContext } from './utils/prepareEvent' ;
@@ -71,15 +70,15 @@ export function captureEvent(event: Event, hint?: EventHint): string {
7170 * @param context Any kind of data. This data will be normalized.
7271 */
7372// eslint-disable-next-line @typescript-eslint/no-explicit-any
74- export function setContext ( name : string , context : { [ key : string ] : any } | null ) : ReturnType < Hub [ 'setContext' ] > {
73+ export function setContext ( name : string , context : { [ key : string ] : any } | null ) : void {
7574 getIsolationScope ( ) . setContext ( name , context ) ;
7675}
7776
7877/**
7978 * Set an object that will be merged sent as extra data with the event.
8079 * @param extras Extras object to merge into current context.
8180 */
82- export function setExtras ( extras : Extras ) : ReturnType < Hub [ 'setExtras' ] > {
81+ export function setExtras ( extras : Extras ) : void {
8382 getIsolationScope ( ) . setExtras ( extras ) ;
8483}
8584
@@ -88,15 +87,15 @@ export function setExtras(extras: Extras): ReturnType<Hub['setExtras']> {
8887 * @param key String of extra
8988 * @param extra Any kind of data. This data will be normalized.
9089 */
91- export function setExtra ( key : string , extra : Extra ) : ReturnType < Hub [ 'setExtra' ] > {
90+ export function setExtra ( key : string , extra : Extra ) : void {
9291 getIsolationScope ( ) . setExtra ( key , extra ) ;
9392}
9493
9594/**
9695 * Set an object that will be merged sent as tags data with the event.
9796 * @param tags Tags context object to merge into current context.
9897 */
99- export function setTags ( tags : { [ key : string ] : Primitive } ) : ReturnType < Hub [ 'setTags' ] > {
98+ export function setTags ( tags : { [ key : string ] : Primitive } ) : void {
10099 getIsolationScope ( ) . setTags ( tags ) ;
101100}
102101
@@ -108,7 +107,7 @@ export function setTags(tags: { [key: string]: Primitive }): ReturnType<Hub['set
108107 * @param key String key of tag
109108 * @param value Value of tag
110109 */
111- export function setTag ( key : string , value : Primitive ) : ReturnType < Hub [ 'setTag' ] > {
110+ export function setTag ( key : string , value : Primitive ) : void {
112111 getIsolationScope ( ) . setTag ( key , value ) ;
113112}
114113
@@ -117,7 +116,7 @@ export function setTag(key: string, value: Primitive): ReturnType<Hub['setTag']>
117116 *
118117 * @param user User context object to be set in the current context. Pass `null` to unset the user.
119118 */
120- export function setUser ( user : User | null ) : ReturnType < Hub [ 'setUser' ] > {
119+ export function setUser ( user : User | null ) : void {
121120 getIsolationScope ( ) . setUser ( user ) ;
122121}
123122
0 commit comments