Migrate the code to node.js LTS version 16.x.x (#492)
[poolifier.git] / src / worker / abstract-worker.ts
index 60b5108273858ee1d761386edddd5e08be511dba..0883b03eb0b5e6587892b5e6456745e8ce53cdd6 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 | undefined | null,
     public readonly opts: WorkerOptions = {
       /**
        * The kill behavior option on this Worker or its default value.