File tree 1 file changed +2
-1
lines changed
libs/providers/go-feature-flag/src/lib
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,13 @@ import { CollectorError } from './errors/collector-error';
12
12
import { GoffApiController } from './controller/goff-api' ;
13
13
14
14
const defaultTargetingKey = 'undefined-targetingKey' ;
15
+ type Timer = ReturnType < typeof setInterval > ;
15
16
16
17
export class GoFeatureFlagDataCollectorHook implements Hook {
17
18
// collectUnCachedEvent (optional) set to true if you want to send all events not only the cached evaluations.
18
19
collectUnCachedEvaluation ?: boolean ;
19
20
// bgSchedulerId contains the id of the setInterval that is running.
20
- private bgScheduler ?: NodeJS . Timeout | number ;
21
+ private bgScheduler ?: Timer ;
21
22
// dataCollectorBuffer contains all the FeatureEvents that we need to send to the relay-proxy for data collection.
22
23
private dataCollectorBuffer ?: FeatureEvent < any > [ ] ;
23
24
// dataFlushInterval interval time (in millisecond) we use to call the relay proxy to collect data.
You can’t perform that action at this time.
0 commit comments