File tree 2 files changed +10
-11
lines changed
2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import type {
20
20
RecordingOptions ,
21
21
ReplayContainer as ReplayContainerInterface ,
22
22
ReplayExperimentalPluginOptions ,
23
- ReplayFlushOptions ,
24
23
ReplayPluginOptions ,
25
24
Session ,
26
25
Timeouts ,
@@ -801,7 +800,16 @@ export class ReplayContainer implements ReplayContainerInterface {
801
800
* Flush recording data to Sentry. Creates a lock so that only a single flush
802
801
* can be active at a time. Do not call this directly.
803
802
*/
804
- private _flush = async ( { force = false } : ReplayFlushOptions = { } ) : Promise < void > => {
803
+ private _flush = async ( {
804
+ force = false ,
805
+ } : {
806
+ /**
807
+ * If true, flush while ignoring the `_isEnabled` state of
808
+ * Replay integration. (By default, flush is noop if integration
809
+ * is stopped).
810
+ */
811
+ force ?: boolean ;
812
+ } = { } ) : Promise < void > => {
805
813
if ( ! this . _isEnabled && ! force ) {
806
814
// This can happen if e.g. the replay was stopped because of exceeding the retry limit
807
815
return ;
Original file line number Diff line number Diff line change @@ -474,15 +474,6 @@ export interface ReplayContainer {
474
474
setInitialState ( ) : void ;
475
475
}
476
476
477
- export interface ReplayFlushOptions {
478
- /**
479
- * If true, flush while ignoring the `_isEnabled` state of
480
- * Replay integration. (By default, flush is noop if integration
481
- * is stopped).
482
- */
483
- force ?: boolean ;
484
- }
485
-
486
477
export interface ReplayPerformanceEntry < T > {
487
478
/**
488
479
* One of these types https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/entryType
You can’t perform that action at this time.
0 commit comments