build: reenable eslint type checking
[poolifier.git] / src / pools / selection-strategies / worker-choice-strategies-context.ts
index d030a4524351beea255a1d57edda357435b70013..a736896a792649a85c9294d9b53aa6633b442820 100644 (file)
@@ -128,7 +128,7 @@ export class WorkerChoiceStrategiesContext<
 
   /**
    * Updates the worker node key in the active worker choice strategies in the context internals.
-   * @param workerNodeKey
+   * @param workerNodeKey - The worker node key.
    * @returns `true` if the update is successful, `false` otherwise.
    */
   public update (workerNodeKey: number): boolean {
@@ -174,7 +174,7 @@ export class WorkerChoiceStrategiesContext<
     } while (workerNodeKey == null && retriesCount < this.retries)
     if (workerNodeKey == null) {
       throw new Error(
-        `Worker node key chosen is null or undefined after ${retriesCount} retries`
+        `Worker node key chosen is null or undefined after ${retriesCount.toString()} retries`
       )
     }
     return workerNodeKey
@@ -233,7 +233,7 @@ export class WorkerChoiceStrategiesContext<
   /**
    * Adds a worker choice strategy to the context.
    * @param workerChoiceStrategy - The worker choice strategy to add.
-   * @param pool
+   * @param pool - The pool instance.
    * @param opts - The worker choice strategy options.
    * @returns The worker choice strategies.
    */