refactor: add PoolEvents/PoolEvent types
[poolifier.git] / src / worker / cluster-worker.ts
index 4f5fbb6b2ea87dcb54227b6b06576d80dba9c849..655520ccedb84aeccc0c1231dfb7c4566747e2c0 100644 (file)
@@ -1,5 +1,5 @@
-import type { Worker } from 'cluster'
-import cluster from 'cluster'
+import type { Worker } from 'node:cluster'
+import cluster from 'node:cluster'
 import type { MessageValue } from '../utility-types'
 import { AbstractWorker } from './abstract-worker'
 import type { WorkerOptions } from './worker-options'
@@ -38,12 +38,12 @@ export class ClusterWorker<
     )
   }
 
-  /** {@inheritDoc} */
+  /** @inheritDoc */
   protected sendToMainWorker (message: MessageValue<Response>): void {
     this.getMainWorker().send(message)
   }
 
-  /** {@inheritDoc} */
+  /** @inheritDoc */
   protected handleError (e: Error | string): string {
     return e instanceof Error ? e.message : e
   }