refactor: refine worker interface definition
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 30 Jun 2023 23:05:42 +0000 (01:05 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 30 Jun 2023 23:05:42 +0000 (01:05 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/worker.ts

index e0636d9920db6ddf4e5d7a20ea412cfbee612b04..be0e3c2734c3eb96b44de652d268da397ef869c1 100644 (file)
@@ -165,8 +165,8 @@ export interface IWorker {
   /**
    * Worker id.
    */
-  id?: number
-  threadId?: number
+  readonly id?: number
+  readonly threadId?: number
   /**
    * Register an event listener.
    *