X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-worker_threads%2Fsrc%2Ftypes.ts;h=4293ab84cc2424ab3836e9a04e5f573e36ca143c;hb=1220758f75fdee2cc2914edfd55ccd7665291f1c;hp=97c2c540df9edbf44a01c01f6b8517c3d04a4d73;hpb=5362c66ba52ab2455ff4813bdf8448c4761e8951;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-worker_threads/src/types.ts b/examples/typescript/http-server-pool/fastify-worker_threads/src/types.ts index 97c2c540..4293ab84 100644 --- a/examples/typescript/http-server-pool/fastify-worker_threads/src/types.ts +++ b/examples/typescript/http-server-pool/fastify-worker_threads/src/types.ts @@ -1,4 +1,5 @@ -import type { ThreadPoolOptions } from 'poolifier' +import type { Worker } from 'worker_threads' +import type { PoolOptions } from 'poolifier' export interface BodyPayload { number?: number @@ -12,7 +13,7 @@ export interface WorkerResponse { body: T } -export interface FastifyPoolifierOptions extends ThreadPoolOptions { +export interface FastifyPoolifierOptions extends PoolOptions { workerFile: string minWorkers?: number maxWorkers?: number