Use type import for cluster Worker
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 5 Jan 2022 18:03:30 +0000 (19:03 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 5 Jan 2022 18:03:30 +0000 (19:03 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/cluster/fixed.ts

index 9844c4a8a912570c10043e4980b8bb3113aab6f1..9d162d8983a7bdce2a68b19e040392be40e83cd4 100644 (file)
@@ -1,4 +1,5 @@
-import cluster, { Worker } from 'cluster'
+import type { Worker } from 'cluster'
+import cluster from 'cluster'
 import type { MessageValue } from '../../utility-types'
 import type { PoolOptions } from '../abstract-pool'
 import { AbstractPool } from '../abstract-pool'