Skip to content

Commit e448577

Browse files
fix(gofeatureflag): remove NodeJS.timeout because it fails eslint (#961)
1 parent b7c4419 commit e448577

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/providers/go-feature-flag/src/lib/data-collector-hook.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ import { CollectorError } from './errors/collector-error';
1212
import { GoffApiController } from './controller/goff-api';
1313

1414
const defaultTargetingKey = 'undefined-targetingKey';
15+
type Timer = ReturnType<typeof setInterval>;
1516

1617
export 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.

0 commit comments

Comments
 (0)