X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=880fdcbac253caac0e4055f52102d8bdb3a52854;hb=5b5321fd0b3ef10dd12b9aa21bf3ca9fa3970e76;hp=85c3a564af238e2858517105ec2960461f41c0a4;hpb=e907c7098316b8b10928c2a716626c710457ae27;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 85c3a564..880fdcba 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,13 +1,10 @@ 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, - PoolEmitter, PoolEvent, PoolInfo, PoolOptions, @@ -24,8 +21,11 @@ export type { MeasurementStatistics, MessageHandler, OnlineHandler, + StrategyData, TaskStatistics, WorkerInfo, + WorkerNodeEventDetail, + WorkerNodeOptions, WorkerType, WorkerUsage } from './pools/worker' @@ -35,6 +35,7 @@ export { } from './pools/selection-strategies/selection-strategies-types' export type { IWorkerChoiceStrategy, + InternalWorkerChoiceStrategyOptions, Measurement, MeasurementOptions, MeasurementStatisticsRequirements, @@ -45,19 +46,21 @@ 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, TaskFunction, + TaskFunctionOperationResult, TaskFunctions, TaskSyncFunction } from './worker/task-functions' @@ -65,11 +68,11 @@ 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 type { Deque, Node } from './deque' export { availableParallelism } from './utils'