X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=0d9491572fa292dc3381aefaea3a6730dcee5b66;hb=refs%2Ftags%2Fv2.5.4;hp=4431b0f98f2617376df1d82937316633267f16de;hpb=184855e69fea29f1018024a34be10de2c8e3141a;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 4431b0f9..0d949157 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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,33 @@ 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 type { AbstractWorker } from './worker/abstract-worker' +export { + FixedThreadPool, + type ThreadPoolOptions, + type ThreadWorkerWithMessageChannel +} from './pools/thread/fixed' +export type { AbstractWorker, TaskPerformance } 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, + WorkerStatistics } from './utility-types' export type { CircularArray } from './circular-array' export type { Queue } from './queue'