File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -69,15 +69,19 @@ export class IdleTransaction extends Transaction {
69
69
70
70
private readonly _beforeFinishCallbacks : BeforeFinishCallback [ ] = [ ] ;
71
71
72
- // If a transaction is created and no activities are added, we want to make sure that
73
- // it times out properly. This is cleared and not used when activities are added.
74
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
75
- private _initTimeout : any ;
72
+ /**
73
+ * If a transaction is created and no activities are added, we want to make sure that
74
+ * it times out properly. This is cleared and not used when activities are added.
75
+ */
76
+ private _initTimeout : ReturnType < typeof setTimeout > | undefined ;
76
77
77
78
public constructor (
78
79
transactionContext : TransactionContext ,
79
80
private readonly _idleHub ?: Hub ,
80
- // The time to wait in ms until the idle transaction will be finished. Default: 1000
81
+ /**
82
+ * The time to wait in ms until the idle transaction will be finished.
83
+ * @default 1000
84
+ */
81
85
private readonly _idleTimeout : number = DEFAULT_IDLE_TIMEOUT ,
82
86
// If an idle transaction should be put itself on and off the scope automatically.
83
87
private readonly _onScope : boolean = false ,
You can’t perform that action at this time.
0 commit comments