From: Jérôme Benoit Date: Mon, 18 Apr 2022 07:47:00 +0000 (+0200) Subject: Silence sonar code smell X-Git-Tag: v2.2.1~83 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=cc9b8d300c91ae6346ddd5904ff9bc932d0d3346;p=poolifier.git Silence sonar code smell Signed-off-by: Jérôme Benoit --- diff --git a/src/utility-types.ts b/src/utility-types.ts index 9c8d9650..769949e0 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -1,4 +1,4 @@ -import type { Worker } from 'cluster' +import type { Worker as ClusterWorker } from 'cluster' import type { MessagePort } from 'worker_threads' import type { IWorker } from './pools/abstract-pool' import type { KillBehavior } from './worker/worker-options' @@ -13,7 +13,7 @@ export type Draft = { -readonly [P in keyof T]?: T[P] } */ export interface MessageValue< Data = unknown, - MainWorker extends Worker | MessagePort | unknown = unknown + MainWorker extends ClusterWorker | MessagePort | unknown = unknown > { /** * Input data that will be passed to the worker.