fix: fix pool options TS type definition
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 16 Dec 2023 15:52:59 +0000 (16:52 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 16 Dec 2023 15:52:59 +0000 (16:52 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
CHANGELOG.md
src/pools/pool.ts
src/pools/worker.ts

index cf02c4df00104f544346209ccec117540d4ab8ee..b33680eef023ded853e3be8f2b2b2905a63be939 100644 (file)
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ## [3.1.0] - 2023-12-16
 
+### Fixed
+
+- Fix pool options TS type definition.
+
 ### Changed
 
 - TypeScript breaking change: merge ThreadPoolOptions and ClusterPoolOptions types into PoolOptions type.
index 856473ff354ee340ec9e990ec2f0de7d7d41e09b..7bc8cf850b105983907d7b74cbab618121f8560b 100644 (file)
@@ -1,4 +1,4 @@
-import type { TransferListItem } from 'node:worker_threads'
+import type { TransferListItem, WorkerOptions } from 'node:worker_threads'
 import type { EventEmitterAsyncResource } from 'node:events'
 import type { ClusterSettings } from 'node:cluster'
 import type { TaskFunction } from '../worker/task-functions'
index be677a04fa1022a28b9f4de6f80938e5c94ec322..9a27d8a5056bb7b4b222f2d210803699ab95ad0d 100644 (file)
@@ -1,4 +1,4 @@
-import type { MessageChannel } from 'node:worker_threads'
+import type { MessageChannel, WorkerOptions } from 'node:worker_threads'
 import type { EventEmitter } from 'node:events'
 import type { CircularArray } from '../circular-array'
 import type { Task } from '../utility-types'