File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
libs/providers/go-feature-flag/src/lib Expand file tree Collapse file tree 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';
1212import { GoffApiController } from './controller/goff-api' ;
1313
1414const defaultTargetingKey = 'undefined-targetingKey' ;
15+ type Timer = ReturnType < typeof setInterval > ;
1516
1617export class GoFeatureFlagDataCollectorHook implements Hook {
1718 // collectUnCachedEvent (optional) set to true if you want to send all events not only the cached evaluations.
1819 collectUnCachedEvaluation ?: boolean ;
1920 // bgSchedulerId contains the id of the setInterval that is running.
20- private bgScheduler ?: NodeJS . Timeout | number ;
21+ private bgScheduler ?: Timer ;
2122 // dataCollectorBuffer contains all the FeatureEvents that we need to send to the relay-proxy for data collection.
2223 private dataCollectorBuffer ?: FeatureEvent < any > [ ] ;
2324 // 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