X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-worker_threads%2Fsrc%2Ftypes.ts;h=97c2c540df9edbf44a01c01f6b8517c3d04a4d73;hb=2b2891b9cad5d9b01c951550c2d7f01cbcf10ae0;hp=4293ab84cc2424ab3836e9a04e5f573e36ca143c;hpb=1220758f75fdee2cc2914edfd55ccd7665291f1c;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 4293ab84..97c2c540 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,5 +1,4 @@ -import type { Worker } from 'worker_threads' -import type { PoolOptions } from 'poolifier' +import type { ThreadPoolOptions } from 'poolifier' export interface BodyPayload { number?: number @@ -13,7 +12,7 @@ export interface WorkerResponse { body: T } -export interface FastifyPoolifierOptions extends PoolOptions { +export interface FastifyPoolifierOptions extends ThreadPoolOptions { workerFile: string minWorkers?: number maxWorkers?: number