Export WorkerPool related types to make pool typing easier
Aperta
enhancement
- Lingua principale
- TypeScript
- Stelle
- 3.5k
- Fork
- 173
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hello. First of all, thank you for this great library.
Would it be possible to export `ExposedToThreadType`, `QueuedTask` and `WorkerPool` types to use in our apps? With these types available it would be much easier to type Pool and/or array of tasks inside our apps like:
```ts
import { Pool, spawn, ExposedToThreadType, QueuedTask, WorkerPoolType } from 'threads';
...
class App {
queue: QueuedTask, boolean>[];
pool: WorkerPool>;
...
```
or is there any other way to type these variables? Thank you!
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.