Bump @types/node from 18.8.0 to 18.8.2 (#575)
[poolifier.git] / src / worker / abstract-worker.ts
index 3a8414d84ff7aba6d8524d908a3b53094f583fa4..fbb8f8390eff2207253195eb3817c68dc879e2b7 100644 (file)
@@ -21,10 +21,6 @@ export abstract class AbstractWorker<
   Data = unknown,
   Response = unknown
 > extends AsyncResource {
-  /**
-   * Options for the worker.
-   */
-  public readonly opts: WorkerOptions
   /**
    * Timestamp of the last task processed by this worker.
    */
@@ -33,6 +29,10 @@ export abstract class AbstractWorker<
    * Handler Id of the `aliveInterval` worker alive check.
    */
   protected readonly aliveInterval?: NodeJS.Timeout
+  /**
+   * Options for the worker.
+   */
+  public readonly opts: WorkerOptions
 
   /**
    * Constructs a new poolifier worker.