X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-worker_threads%2F%40types%2Ffastify%2Findex.d.ts;h=93fb69eb806a7a112aebe7a72a9fbc2ef1df49f3;hb=e1b768660b1cb0a444a73366e047d7c6fb56b570;hp=0e43ad26fe6c42ffa4481b55947f64a574467882;hpb=d2bc8d8026164b1389822feced0f42af20552176;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-worker_threads/@types/fastify/index.d.ts b/examples/typescript/http-server-pool/fastify-worker_threads/@types/fastify/index.d.ts index 0e43ad26..93fb69eb 100644 --- a/examples/typescript/http-server-pool/fastify-worker_threads/@types/fastify/index.d.ts +++ b/examples/typescript/http-server-pool/fastify-worker_threads/@types/fastify/index.d.ts @@ -1,10 +1,15 @@ +import type { TransferListItem } from 'node:worker_threads' import type * as fastify from 'fastify' -import { type DynamicThreadPool } from 'poolifier' -import { type WorkerData, type WorkerResponse } from '../../src/types.ts' +import type { DynamicThreadPool } from 'poolifier' +import type { WorkerData, WorkerResponse } from '../../src/types.ts' declare module 'fastify' { export interface FastifyInstance extends fastify.FastifyInstance { pool: DynamicThreadPool - execute: (data?: WorkerData, name?: string) => Promise + execute: ( + data?: WorkerData, + name?: string, + transferList?: TransferListItem[] + ) => Promise } }