Apply dependencies update (#482)
[poolifier.git] / src / index.ts
index a5fe1519d711c43ec97cf5120a2af92cb40babe7..2bae50e71083ebde5075ddff357f78db1970a896 100644 (file)
@@ -1,14 +1,21 @@
-import DynamicThreadPool from './dynamic'
-import FixedThreadPool from './fixed'
-import { ThreadWorker } from './workers'
-
 export type {
-  Draft,
-  FixedThreadPoolOptions,
-  WorkerWithMessageChannel
-} from './fixed'
-export type { DynamicThreadPoolOptions } from './dynamic'
-export type { ThreadWorkerOptions } from './workers'
-export { FixedThreadPool, DynamicThreadPool, ThreadWorker }
-
-module.exports = { FixedThreadPool, DynamicThreadPool, ThreadWorker }
+  ErrorHandler,
+  ExitHandler,
+  IWorker,
+  OnlineHandler,
+  PoolOptions
+} from './pools/abstract-pool'
+export { DynamicClusterPool } from './pools/cluster/dynamic'
+export { FixedClusterPool } from './pools/cluster/fixed'
+export type { ClusterPoolOptions } from './pools/cluster/fixed'
+export type { IPool } from './pools/pool'
+export { WorkerChoiceStrategies } from './pools/selection-strategies'
+export type { WorkerChoiceStrategy } from './pools/selection-strategies'
+export { DynamicThreadPool } from './pools/thread/dynamic'
+export { FixedThreadPool } from './pools/thread/fixed'
+export type { ThreadWorkerWithMessageChannel } from './pools/thread/fixed'
+export { 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'