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=e2ec4062820d299647132f7ac0306127e0ebe57e;hpb=1cbc41d7d690ae5a498280b0cb898eeec4522ec6;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 e2ec4062..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,7 +11,7 @@ declare module 'fastify' { execute: ( data?: WorkerData, name?: string, - transferList?: TransferListItem[] + transferList?: readonly TransferListItem[] ) => Promise } }