Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
-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'
*/
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.