fix: readd ThreadPoolOptions and ClusterPoolOptions TS type aliases to PoolOptions
[poolifier.git] / examples / typescript / http-server-pool / fastify-worker_threads / src / types.ts
CommitLineData
2889bd70 1import type { ThreadPoolOptions } from 'poolifier'
a8706532
JB
2
3export interface BodyPayload {
4 number?: number
5}
6
7export interface WorkerData<T = unknown> {
8 body: T
9}
10
11export interface WorkerResponse<T = unknown> {
12 body: T
13}
14
2889bd70 15export interface FastifyPoolifierOptions extends ThreadPoolOptions {
a8706532 16 workerFile: string
6ff35e73 17 minWorkers?: number
503bda5b 18 maxWorkers?: number
a8706532 19}