Dependencies update + API cleanups (#376)
[poolifier.git] / src / worker / abstract-worker.ts
index 4a6241a8ccfdb1c7426504568989c3c293983405..520be7cd0041ee29604a8f79ddf046b78677e702 100644 (file)
@@ -43,7 +43,7 @@ export abstract class AbstractWorker<
     type: string,
     isMain: boolean,
     fn: (data: Data) => Response,
-    protected mainWorker?: MainWorker | null,
+    protected mainWorker: MainWorker | null,
     public readonly opts: WorkerOptions = {
       /**
        * The kill behavior option on this Worker or its default value.