Extract selection strategies to classes (#176)
[poolifier.git] / src / worker / abstract-worker.ts
index d41115bc390b26f63eeaa9ae4500d678cb1bd7b4..4f741b47acf134146069e33d866b8f40a09e0bb1 100644 (file)
@@ -101,7 +101,7 @@ export abstract class AbstractWorker<
    *
    * @param fn The function that should be defined.
    */
-  private checkFunctionInput (fn: (data: Data) => Response) {
+  private checkFunctionInput (fn: (data: Data) => Response): void {
     if (!fn) throw new Error('fn parameter is mandatory')
   }