fix: handle added function at runtime with dynamic worker
[poolifier.git] / src / pools / pool.ts
index a19b70a387665bf13d8c7f796390928da52ed0d8..cb7580898656ccd58a379edf24cdc55631301f34 100644 (file)
@@ -251,7 +251,7 @@ export interface IPool<
    */
   readonly addTaskFunction: (
     name: string,
-    taskFunction: TaskFunction
+    taskFunction: TaskFunction<Data, Response>
   ) => Promise<boolean>
   /**
    * Removes a task function from this pool.