Apply dependencies update
[poolifier.git] / src / pools / selection-strategies / selection-strategies-types.ts
index 499b8e489e744a3fad453391b8e4e664c90eac94..21e4129eeca6d9e09619647ab7b80abbd299032c 100644 (file)
@@ -30,7 +30,7 @@ export type WorkerChoiceStrategy = keyof typeof WorkerChoiceStrategies
 /**
  * Pool tasks usage statistics requirements.
  */
-export type RequiredStatistics = {
+export interface RequiredStatistics {
   runTime: boolean
 }
 
@@ -51,9 +51,9 @@ export interface IWorkerChoiceStrategy<Worker extends IPoolWorker> {
   /**
    * Resets strategy internals (counters, statistics, etc.).
    */
-  reset(): boolean
+  reset: () => boolean
   /**
    * Chooses a worker in the pool.
    */
-  choose(): Worker
+  choose: () => Worker
 }