summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dbed421)
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'
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,
*/
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.
> {
/**
* Input data that will be passed to the worker.