build(deps-dev): apply updates
[e-mobility-charging-stations-simulator.git] / src / worker / WorkerStaticPool.ts
index 7000ac9a45e7f0ea8d5de89a9ba3496782c59b63..b1cc718949b4d0ea94d3c338315bf8284cd45e43 100644 (file)
@@ -52,6 +52,7 @@ export class WorkerStaticPool extends WorkerAbstract<WorkerData> {
   public async addElement(elementData: WorkerData): Promise<void> {
     await this.pool.execute(elementData);
     // Start element sequentially to optimize memory at startup
-    this.workerOptions.elementStartDelay > 0 && (await sleep(this.workerOptions.elementStartDelay));
+    this.workerOptions.elementStartDelay! > 0 &&
+      (await sleep(this.workerOptions.elementStartDelay!));
   }
 }