X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=880fdcbac253caac0e4055f52102d8bdb3a52854;hb=5b5321fd0b3ef10dd12b9aa21bf3ca9fa3970e76;hp=f3bbe5031e3d8b94e65c1e0dfb343fa6c5e6c301;hpb=5b7d00b4d0f276c521db9f2145104a64f441d2fb;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index f3bbe503..880fdcba 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,9 +1,7 @@ export type { AbstractPool } from './pools/abstract-pool' export { DynamicClusterPool } from './pools/cluster/dynamic' -export { - FixedClusterPool, - type ClusterPoolOptions -} from './pools/cluster/fixed' +export { FixedClusterPool } from './pools/cluster/fixed' +export type { ClusterPoolOptions } from './pools/cluster/fixed' export { PoolEvents, PoolTypes } from './pools/pool' export type { IPool, @@ -26,7 +24,8 @@ export type { StrategyData, TaskStatistics, WorkerInfo, - WorkerNodeEventCallback, + WorkerNodeEventDetail, + WorkerNodeOptions, WorkerType, WorkerUsage } from './pools/worker' @@ -36,6 +35,7 @@ export { } from './pools/selection-strategies/selection-strategies-types' export type { IWorkerChoiceStrategy, + InternalWorkerChoiceStrategyOptions, Measurement, MeasurementOptions, MeasurementStatisticsRequirements, @@ -46,15 +46,16 @@ export type { } 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, type ThreadPoolOptions } from './pools/thread/fixed' +export { FixedThreadPool } from './pools/thread/fixed' +export type { ThreadPoolOptions } 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, - KillHandler + KillHandler, + WorkerOptions } from './worker/worker-options' export type { TaskAsyncFunction, @@ -67,8 +68,8 @@ export type { MessageValue, PromiseResponseWrapper, Task, - WorkerError, TaskPerformance, + WorkerError, WorkerStatistics, Writable } from './utility-types'