X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-hybrid%2F%40types%2Ffastify%2Findex.d.ts;h=166bfd330a00fa3efe91af3eab84e3d2966edd17;hb=6e5d7052fe741b50e68f8614b33d3754be41415f;hp=a995923928ed84ecafaf9afcbdc4ddee90884103;hpb=3b3115396965edad0cf3fefc4f9081977310da34;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-hybrid/@types/fastify/index.d.ts b/examples/typescript/http-server-pool/fastify-hybrid/@types/fastify/index.d.ts index a9959239..166bfd33 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/@types/fastify/index.d.ts +++ b/examples/typescript/http-server-pool/fastify-hybrid/@types/fastify/index.d.ts @@ -1,9 +1,9 @@ +import type { TransferListItem } from 'node:worker_threads' + import type * as fastify from 'fastify' -import { type DynamicThreadPool } from 'poolifier' -import { - type ThreadWorkerData, - type ThreadWorkerResponse -} from '../../src/types.ts' +import type { DynamicThreadPool } from 'poolifier' + +import type { ThreadWorkerData, ThreadWorkerResponse } from '../../src/types.ts' declare module 'fastify' { export interface FastifyInstance extends fastify.FastifyInstance { @@ -11,7 +11,7 @@ declare module 'fastify' { execute: ( data?: ThreadWorkerData, name?: string, - transferList?: TransferListItem[] + transferList?: readonly TransferListItem[] ) => Promise } }