fix: add types fileds to package.json exports
[poolifier.git] / src / index.ts
CommitLineData
c4855468 1export type { AbstractPool } from './pools/abstract-pool'
fe61e2b9
JB
2export { DynamicClusterPool } from './pools/cluster/dynamic'
3export {
4 FixedClusterPool,
5 type ClusterPoolOptions
6} from './pools/cluster/fixed'
4b628b48 7export { PoolEvents, PoolTypes } from './pools/pool'
0274ce2d
JB
8export type {
9 IPool,
10 PoolEmitter,
0274ce2d 11 PoolEvent,
6b27d407 12 PoolInfo,
c7c04698 13 PoolOptions,
e8bd29ce 14 PoolType,
4b628b48 15 TasksQueueOptions
0274ce2d 16} from './pools/pool'
4b628b48 17export { WorkerTypes } from './pools/worker'
bdaf31cd
JB
18export type {
19 ErrorHandler,
9adcefab 20 EventLoopUtilizationMeasurementStatistics,
bdaf31cd 21 ExitHandler,
0274ce2d 22 IWorker,
4b628b48 23 IWorkerNode,
87de9ff5 24 MeasurementStatistics,
ea7a90d3 25 MessageHandler,
c4855468 26 OnlineHandler,
87de9ff5 27 TaskStatistics,
bff4b6ed 28 WorkerInfo,
4b628b48 29 WorkerType,
87de9ff5 30 WorkerUsage
f06e48d8 31} from './pools/worker'
9adcefab
JB
32export {
33 Measurements,
34 WorkerChoiceStrategies
35} from './pools/selection-strategies/selection-strategies-types'
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
45} from './pools/selection-strategies/selection-strategies-types'
c4855468 46export type { WorkerChoiceStrategyContext } from './pools/selection-strategies/worker-choice-strategy-context'
c97c7edb 47export { DynamicThreadPool } from './pools/thread/dynamic'
e102732c 48export { FixedThreadPool, type ThreadPoolOptions } from './pools/thread/fixed'
d715b7bc 49export type { AbstractWorker } from './worker/abstract-worker'
c97c7edb
S
50export { ClusterWorker } from './worker/cluster-worker'
51export { ThreadWorker } from './worker/thread-worker'
1a81f8af
S
52export { KillBehaviors } from './worker/worker-options'
53export type { KillBehavior, WorkerOptions } from './worker/worker-options'
e8bd29ce 54export type {
82ea6492
JB
55 TaskAsyncFunction,
56 TaskFunction,
c7c04698 57 TaskFunctions,
82ea6492
JB
58 TaskSyncFunction
59} from './worker/task-functions'
b6b32453 60export type {
b6b32453 61 MessageValue,
0ea4c067 62 PromiseResponseWrapper,
5c4d16da 63 Task,
87de9ff5 64 TaskError,
d715b7bc 65 TaskPerformance,
0ea4c067 66 WorkerStatistics
e8bd29ce 67} from './utility-types'
4342a45e 68export type { CircularArray } from './circular-array'
13455ed2 69export type { Queue } from './queue'
51474716 70export { availableParallelism } from './utils'