docs: refine README to include latest API changes
[poolifier.git] / src / index.ts
index 4431b0f98f2617376df1d82937316633267f16de..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,
@@ -26,27 +28,32 @@ export type {
 export { WorkerChoiceStrategies } from './pools/selection-strategies/selection-strategies-types'
 export type {
   IWorkerChoiceStrategy,
-  RequiredStatistics,
+  TaskStatistics,
   WorkerChoiceStrategy,
   WorkerChoiceStrategyOptions
 } 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'
 export { KillBehaviors } from './worker/worker-options'
 export type { KillBehavior, WorkerOptions } from './worker/worker-options'
 export type {
-  Draft,
-  MessageValue,
-  PromiseResponseWrapper,
   TaskFunctions,
   WorkerAsyncFunction,
   WorkerFunction,
   WorkerSyncFunction
+} from './worker/worker-functions'
+export type {
+  Draft,
+  MessageValue,
+  PromiseResponseWrapper
 } from './utility-types'
 export type { CircularArray } from './circular-array'
 export type { Queue } from './queue'