X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-hybrid%2Fsrc%2Ftypes.ts;h=179ac65edd4cd708c4babe4728599a961fe9c1a1;hb=fa3578ff601ca6691a6f20e53c68f3158dca8320;hp=2ef0d1ce8813d189a7c63e6b0e5f1f40cef3e212;hpb=1220758f75fdee2cc2914edfd55ccd7665291f1c;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 2ef0d1ce..179ac65e 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/src/types.ts +++ b/examples/typescript/http-server-pool/fastify-hybrid/src/types.ts @@ -1,5 +1,4 @@ -import type { Worker } from 'worker_threads' -import type { PoolOptions } from 'poolifier' +import type { ThreadPoolOptions } from 'poolifier' export interface ClusterWorkerData extends FastifyPoolifierOptions { port: number @@ -22,7 +21,7 @@ export interface ThreadWorkerResponse { data: T } -export interface FastifyPoolifierOptions extends PoolOptions { +export interface FastifyPoolifierOptions extends ThreadPoolOptions { workerFile: string minWorkers?: number maxWorkers?: number