X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=7c438e3e605210c8bca19d4de8eef4bf83dcc47f;hb=a4791fb12ff22711bc4bf1bcae4231ca7d6c7974;hp=85c3a564af238e2858517105ec2960461f41c0a4;hpb=ff3f866a041b682830639663364c389628095658;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 85c3a564..7c438e3e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,22 +1,20 @@ -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, + EventHandler, EventLoopUtilizationMeasurementStatistics, ExitHandler, IWorker, @@ -24,15 +22,18 @@ export type { MeasurementStatistics, MessageHandler, OnlineHandler, + 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, Measurement, @@ -42,34 +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' +} 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, - WorkerOptions, - KillHandler -} from './worker/worker-options' + KillHandler, + WorkerOptions +} from './worker/worker-options.js' export type { TaskAsyncFunction, TaskFunction, + TaskFunctionOperationResult, TaskFunctions, TaskSyncFunction -} from './worker/task-functions' +} from './worker/task-functions.js' export type { MessageValue, PromiseResponseWrapper, Task, - TaskError, TaskPerformance, + WorkerError, WorkerStatistics, Writable -} from './utility-types' -export type { CircularArray } from './circular-array' -export type { Deque } from './deque' -export { availableParallelism } from './utils' +} from './utility-types.js' +export type { CircularArray } from './circular-array.js' +export type { Deque, Node } from './deque.js' +export { availableParallelism } from './utils.js'