refactor: cleanup package.json
[poolifier.git] / src / index.ts
CommitLineData
d35e5717
JB
1export type { AbstractPool } from './pools/abstract-pool.js'
2export { DynamicClusterPool } from './pools/cluster/dynamic.js'
3export { FixedClusterPool } from './pools/cluster/fixed.js'
4export type { ClusterPoolOptions } from './pools/cluster/fixed.js'
5export { PoolEvents, PoolTypes } from './pools/pool.js'
0274ce2d
JB
6export type {
7 IPool,
0274ce2d 8 PoolEvent,
6b27d407 9 PoolInfo,
c7c04698 10 PoolOptions,
e8bd29ce 11 PoolType,
4b628b48 12 TasksQueueOptions
d35e5717
JB
13} from './pools/pool.js'
14export { WorkerTypes } from './pools/worker.js'
bdaf31cd
JB
15export type {
16 ErrorHandler,
9adcefab 17 EventLoopUtilizationMeasurementStatistics,
bdaf31cd 18 ExitHandler,
0274ce2d 19 IWorker,
4b628b48 20 IWorkerNode,
87de9ff5 21 MeasurementStatistics,
ea7a90d3 22 MessageHandler,
c4855468 23 OnlineHandler,
4ccb689a 24 StrategyData,
87de9ff5 25 TaskStatistics,
bff4b6ed 26 WorkerInfo,
de868be6 27 WorkerNodeEventDetail,
c3719753 28 WorkerNodeOptions,
4b628b48 29 WorkerType,
87de9ff5 30 WorkerUsage
d35e5717 31} from './pools/worker.js'
9adcefab
JB
32export {
33 Measurements,
34 WorkerChoiceStrategies
d35e5717 35} from './pools/selection-strategies/selection-strategies-types.js'
8125b6a2 36export type {
c4855468 37 IWorkerChoiceStrategy,
9adcefab
JB
38 Measurement,
39 MeasurementOptions,
40 MeasurementStatisticsRequirements,
4a1fe3d4 41 StrategyPolicy,
87de9ff5 42 TaskStatisticsRequirements,
8125b6a2
JB
43 WorkerChoiceStrategy,
44 WorkerChoiceStrategyOptions
d35e5717
JB
45} from './pools/selection-strategies/selection-strategies-types.js'
46export type { WorkerChoiceStrategyContext } from './pools/selection-strategies/worker-choice-strategy-context.js'
47export { DynamicThreadPool } from './pools/thread/dynamic.js'
48export { FixedThreadPool } from './pools/thread/fixed.js'
49export type { ThreadPoolOptions } from './pools/thread/fixed.js'
50export type { AbstractWorker } from './worker/abstract-worker.js'
51export { ClusterWorker } from './worker/cluster-worker.js'
52export { ThreadWorker } from './worker/thread-worker.js'
53export { KillBehaviors } from './worker/worker-options.js'
e8f1b611
JB
54export type {
55 KillBehavior,
af051dc5
JB
56 KillHandler,
57 WorkerOptions
d35e5717 58} from './worker/worker-options.js'
e8bd29ce 59export type {
82ea6492
JB
60 TaskAsyncFunction,
61 TaskFunction,
4e38fd21 62 TaskFunctionOperationResult,
c7c04698 63 TaskFunctions,
82ea6492 64 TaskSyncFunction
d35e5717 65} from './worker/task-functions.js'
b6b32453 66export type {
b6b32453 67 MessageValue,
0ea4c067 68 PromiseResponseWrapper,
5c4d16da 69 Task,
d715b7bc 70 TaskPerformance,
af051dc5 71 WorkerError,
ff3f866a
JB
72 WorkerStatistics,
73 Writable
d35e5717
JB
74} from './utility-types.js'
75export type { CircularArray } from './circular-array.js'
76export type { Deque, Node } from './deque.js'
77export { availableParallelism } from './utils.js'