1
1
/* eslint-disable max-lines */ // TODO: We might want to split this file up
2
2
import { EventType , record } from '@sentry-internal/rrweb' ;
3
3
import { captureException , getCurrentHub } from '@sentry/core' ;
4
- import type { Breadcrumb , ReplayRecordingMode , Transaction } from '@sentry/types' ;
4
+ import type { ReplayRecordingMode , Transaction } from '@sentry/types' ;
5
5
import { logger } from '@sentry/utils' ;
6
6
7
7
import {
@@ -21,6 +21,7 @@ import type {
21
21
AddEventResult ,
22
22
AddUpdateCallback ,
23
23
AllPerformanceEntry ,
24
+ BreadcrumbFrame ,
24
25
EventBuffer ,
25
26
InternalEventContext ,
26
27
PopEventContext ,
@@ -808,7 +809,7 @@ export class ReplayContainer implements ReplayContainerInterface {
808
809
/**
809
810
* Tasks to run when we consider a page to be hidden (via blurring and/or visibility)
810
811
*/
811
- private _doChangeToBackgroundTasks ( breadcrumb ?: Breadcrumb ) : void {
812
+ private _doChangeToBackgroundTasks ( breadcrumb ?: BreadcrumbFrame ) : void {
812
813
if ( ! this . session ) {
813
814
return ;
814
815
}
@@ -828,7 +829,7 @@ export class ReplayContainer implements ReplayContainerInterface {
828
829
/**
829
830
* Tasks to run when we consider a page to be visible (via focus and/or visibility)
830
831
*/
831
- private _doChangeToForegroundTasks ( breadcrumb ?: Breadcrumb ) : void {
832
+ private _doChangeToForegroundTasks ( breadcrumb ?: BreadcrumbFrame ) : void {
832
833
if ( ! this . session ) {
833
834
return ;
834
835
}
@@ -881,7 +882,7 @@ export class ReplayContainer implements ReplayContainerInterface {
881
882
/**
882
883
* Helper to create (and buffer) a replay breadcrumb from a core SDK breadcrumb
883
884
*/
884
- private _createCustomBreadcrumb ( breadcrumb : Breadcrumb ) : void {
885
+ private _createCustomBreadcrumb ( breadcrumb : BreadcrumbFrame ) : void {
885
886
this . addUpdate ( ( ) => {
886
887
void this . throttledAddEvent ( {
887
888
type : EventType . Custom ,
0 commit comments