X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-hybrid%2Fsrc%2Ftypes.ts;h=137f4a98e22aa076085ae405455f1c4b28f82327;hb=8bc42206b3683f6bb7fc707b45b391e8e9ad10c5;hp=179ac65edd4cd708c4babe4728599a961fe9c1a1;hpb=d0ed34c9a6f9896c16b1b963e87217bbf75f3393;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-hybrid/src/types.ts b/examples/typescript/http-server-pool/fastify-hybrid/src/types.ts index 179ac65e..137f4a98 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/src/types.ts +++ b/examples/typescript/http-server-pool/fastify-hybrid/src/types.ts @@ -1,4 +1,5 @@ -import type { ThreadPoolOptions } from 'poolifier' +import type { Worker } from 'node:worker_threads' +import type { PoolOptions } from 'poolifier' export interface ClusterWorkerData extends FastifyPoolifierOptions { port: number @@ -21,7 +22,7 @@ export interface ThreadWorkerResponse { data: T } -export interface FastifyPoolifierOptions extends ThreadPoolOptions { +export interface FastifyPoolifierOptions extends PoolOptions { workerFile: string minWorkers?: number maxWorkers?: number