From aecc6e48d609dc8a988774d18ff0f2e49e3be981 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 1 Jul 2023 01:05:42 +0200 Subject: [PATCH] refactor: refine worker interface definition MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/pools/worker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. * -- 2.34.1