From: Jérôme Benoit Date: Fri, 30 Jun 2023 23:05:42 +0000 (+0200) Subject: refactor: refine worker interface definition X-Git-Tag: v2.6.7~16^2~9 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=aecc6e48d609dc8a988774d18ff0f2e49e3be981;p=poolifier.git refactor: refine worker interface definition Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/worker.ts b/src/pools/worker.ts index e0636d99..be0e3c27 100644 --- a/src/pools/worker.ts +++ b/src/pools/worker.ts @@ -165,8 +165,8 @@ export interface IWorker { /** * Worker id. */ - id?: number - threadId?: number + readonly id?: number + readonly threadId?: number /** * Register an event listener. *