X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=0a9ab8f1ce44c43de8dd4e1c9e1a4617959afdd3;hb=67f3f2d6cb8f915ec71f81c4533ab80a6c6a6f0f;hp=54c352fc9f4f4b527201b4ef30198cd1c89e5c28;hpb=4b628b4844b461e434c5945feead43b0cc7aab01;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 54c352fc..0a9ab8f1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,20 +1,17 @@ -export type { AbstractPool } from './pools/abstract-pool' -export { DynamicClusterPool } from './pools/cluster/dynamic' -export { - FixedClusterPool, - type ClusterPoolOptions -} from './pools/cluster/fixed' -export { PoolEvents, PoolTypes } from './pools/pool' +export type { AbstractPool } from './pools/abstract-pool.js' +export { DynamicClusterPool } from './pools/cluster/dynamic.js' +export { FixedClusterPool } from './pools/cluster/fixed.js' +export type { ClusterPoolOptions } from './pools/cluster/fixed.js' +export { PoolEvents, PoolTypes } from './pools/pool.js' export type { IPool, - PoolEmitter, PoolEvent, PoolInfo, PoolOptions, PoolType, TasksQueueOptions -} from './pools/pool' -export { WorkerTypes } from './pools/worker' +} from './pools/pool.js' +export { WorkerTypes } from './pools/worker.js' export type { ErrorHandler, EventLoopUtilizationMeasurementStatistics, @@ -24,18 +21,21 @@ export type { MeasurementStatistics, MessageHandler, OnlineHandler, - Task, + StrategyData, TaskStatistics, WorkerInfo, + WorkerNodeEventDetail, + WorkerNodeOptions, WorkerType, WorkerUsage -} from './pools/worker' +} from './pools/worker.js' export { Measurements, WorkerChoiceStrategies -} from './pools/selection-strategies/selection-strategies-types' +} from './pools/selection-strategies/selection-strategies-types.js' export type { IWorkerChoiceStrategy, + InternalWorkerChoiceStrategyOptions, Measurement, MeasurementOptions, MeasurementStatisticsRequirements, @@ -43,28 +43,36 @@ export type { TaskStatisticsRequirements, 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, 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 } from './worker/worker-options' +} from './pools/selection-strategies/selection-strategies-types.js' +export type { WorkerChoiceStrategyContext } from './pools/selection-strategies/worker-choice-strategy-context.js' +export { DynamicThreadPool } from './pools/thread/dynamic.js' +export { FixedThreadPool } from './pools/thread/fixed.js' +export type { ThreadPoolOptions } from './pools/thread/fixed.js' +export type { AbstractWorker } from './worker/abstract-worker.js' +export { ClusterWorker } from './worker/cluster-worker.js' +export { ThreadWorker } from './worker/thread-worker.js' +export { KillBehaviors } from './worker/worker-options.js' export type { + KillBehavior, + KillHandler, + WorkerOptions +} from './worker/worker-options.js' +export type { + TaskAsyncFunction, + TaskFunction, + TaskFunctionOperationResult, TaskFunctions, - WorkerAsyncFunction, - WorkerFunction, - WorkerSyncFunction -} from './worker/worker-functions' + TaskSyncFunction +} from './worker/task-functions.js' export type { MessageValue, PromiseResponseWrapper, - TaskError, + Task, TaskPerformance, - WorkerStatistics -} from './utility-types' -export type { CircularArray } from './circular-array' -export type { Queue } from './queue' -export { availableParallelism } from './utils' + WorkerError, + WorkerStatistics, + Writable +} from './utility-types.js' +export type { CircularArray } from './circular-array.js' +export type { Deque, Node } from './deque.js' +export { availableParallelism } from './utils.js'