refactor: revert flagging worker options as readonly
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 19 Nov 2024 14:43:27 +0000 (15:43 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 19 Nov 2024 14:43:27 +0000 (15:43 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/worker/abstract-worker.ts

index 1ea46a23f7b87d945792d838d4216a9fca8f58ed..9549d18c32d158b8026ed620c72379134176ce72 100644 (file)
@@ -194,7 +194,7 @@ export abstract class AbstractWorker<
     protected readonly isMain: boolean | undefined,
     private readonly mainWorker: MainWorker | null | undefined,
     taskFunctions: TaskFunction<Data, Response> | TaskFunctions<Data, Response>,
-    protected readonly opts: WorkerOptions = DEFAULT_WORKER_OPTIONS
+    protected opts: WorkerOptions = DEFAULT_WORKER_OPTIONS
   ) {
     if (this.isMain == null) {
       throw new Error('isMain parameter is mandatory')