Skip to content

Commit 3e86557

Browse files
committed
Remove optional
1 parent 152e3c5 commit 3e86557

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/hub/src/scope.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ export class Scope implements ScopeInterface {
436436
* @param hint May contain additional information about the original exception.
437437
* @hidden
438438
*/
439-
public applyToEvent(event: Event, hint?: EventHint): PromiseLike<Event | null> {
439+
public applyToEvent(event: Event, hint: EventHint): PromiseLike<Event | null> {
440440
if (this._extra && Object.keys(this._extra).length) {
441441
event.extra = { ...this._extra, ...event.extra };
442442
}
@@ -491,7 +491,7 @@ export class Scope implements ScopeInterface {
491491
protected _notifyEventProcessors(
492492
processors: EventProcessor[],
493493
event: Event | null,
494-
hint?: EventHint,
494+
hint: EventHint,
495495
index: number = 0,
496496
): PromiseLike<Event | null> {
497497
return new SyncPromise<Event | null>((resolve, reject) => {

packages/types/src/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
191191
* @param hint May contain additional information about the original exception.
192192
* @returns A new event that will be sent | null.
193193
*/
194-
beforeSend?: (event: Event, hint?: EventHint) => PromiseLike<Event | null> | Event | null;
194+
beforeSend?: (event: Event, hint: EventHint) => PromiseLike<Event | null> | Event | null;
195195

196196
/**
197197
* A callback invoked when adding a breadcrumb, allowing to optionally modify

0 commit comments

Comments
 (0)