X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=1895d34877410bdca90ca30b60acf13c48db7299;hb=d715b7bc2973eed82edebb1f7d233d451ad3c97b;hp=7a246505c502e9256d0506e8420fc57d8acdeef9;hpb=74f29142ea20199700ef7021402616ea9de714a8;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 7a246505..1895d348 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,23 +1,61 @@ +export type { AbstractPool } from './pools/abstract-pool' export { DynamicClusterPool } from './pools/cluster/dynamic' -export { FixedClusterPool } from './pools/cluster/fixed' -export type { ClusterPoolOptions } from './pools/cluster/fixed' -export { PoolEvents } from './pools/pool' -export type { IPool, PoolEmitter, PoolOptions, PoolEvent } from './pools/pool' +export { + FixedClusterPool, + type ClusterPoolOptions +} from './pools/cluster/fixed' +export { PoolEvents, PoolTypes, WorkerTypes } from './pools/pool' +export type { + IPool, + PoolEmitter, + PoolEvent, + PoolInfo, + PoolOptions, + PoolType, + TasksQueueOptions, + WorkerType +} from './pools/pool' export type { ErrorHandler, ExitHandler, + IWorker, MessageHandler, - OnlineHandler + OnlineHandler, + Task, + TasksUsage, + WorkerNode } from './pools/worker' export { WorkerChoiceStrategies } from './pools/selection-strategies/selection-strategies-types' export type { + IWorkerChoiceStrategy, + 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 { + TaskFunctions, + WorkerAsyncFunction, + WorkerFunction, + WorkerSyncFunction +} from './worker/worker-functions' +export type { + Draft, + MessageValue, + PromiseResponseWrapper, + TaskPerformance, + WorkerStatistics +} from './utility-types' +export type { CircularArray } from './circular-array' +export type { Queue } from './queue'