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=899aa1a028926166853cb383eaf8b2dc7cdebf46;hb=5c8b08294e04cba31be5e2e5c9962536c284f27b;hp=0de82629cd2d369a64d7c9985746ac9cbdd1e3e9;hpb=ff6cf64964e78aafa95098852ec0472b567f7b1b;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 0de82629..899aa1a0 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,7 +1,9 @@ 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 { @@ -9,8 +11,7 @@ declare module 'fastify' { execute: ( data?: WorkerData, name?: string, - transferList?: TransferListItem[] + transferList?: readonly TransferListItem[] ) => Promise - listTaskFunctions: () => string[] } }