X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=2bae50e71083ebde5075ddff357f78db1970a896;hb=767e23e80a540dcedab8a2aa5203b8526e3df7b1;hp=1d7e0b1fcfc5be98992f2cc5113a00b84ed6db12;hpb=60fbd6d6188b0902d157fd0cde04d6af3a391e32;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 1d7e0b1f..2bae50e7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,12 +1,21 @@ -import { DynamicThreadPool } from './dynamic' -import { FixedThreadPool } from './fixed' -import { ThreadWorker } from './workers' - -export { - Draft, - FixedThreadPoolOptions, - WorkerWithMessageChannel -} from './fixed' -export { DynamicThreadPoolOptions } from './dynamic' -export { ThreadWorkerOptions } from './workers' -export { FixedThreadPool, DynamicThreadPool, ThreadWorker } +export type { + 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'