fix: export thread pool options type
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 7 Jun 2023 18:04:02 +0000 (20:04 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 7 Jun 2023 18:04:02 +0000 (20:04 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/index.ts

index 993cbe933e6109b28a2984a126bd734d2b7f10f1..34989c1f1cec424af6ef55926358d4a898dfa965 100644 (file)
@@ -1,7 +1,9 @@
-export { DynamicClusterPool } from './pools/cluster/dynamic'
-export { FixedClusterPool } from './pools/cluster/fixed'
-export type { ClusterPoolOptions } from './pools/cluster/fixed'
 export type { AbstractPool } from './pools/abstract-pool'
+export { DynamicClusterPool } from './pools/cluster/dynamic'
+export {
+  FixedClusterPool,
+  type ClusterPoolOptions
+} from './pools/cluster/fixed'
 export { PoolEvents, PoolTypes, WorkerTypes } from './pools/pool'
 export type {
   IPool,
@@ -32,8 +34,11 @@ export type {
 } from './pools/selection-strategies/selection-strategies-types'
 export type { WorkerChoiceStrategyContext } from './pools/selection-strategies/worker-choice-strategy-context'
 export { DynamicThreadPool } from './pools/thread/dynamic'
-export { FixedThreadPool } from './pools/thread/fixed'
-export type { ThreadWorkerWithMessageChannel } from './pools/thread/fixed'
+export {
+  FixedThreadPool,
+  type ThreadPoolOptions,
+  type ThreadWorkerWithMessageChannel
+} from './pools/thread/fixed'
 export type { AbstractWorker } from './worker/abstract-worker'
 export { ClusterWorker } from './worker/cluster-worker'
 export { ThreadWorker } from './worker/thread-worker'