1 import type * as fastify from
'fastify'
2 import { type DynamicThreadPool
} from
'poolifier'
5 type ThreadWorkerResponse
6 } from
'../../src/types.ts'
8 declare module 'fastify' {
9 export interface FastifyInstance
extends fastify
.FastifyInstance
{
10 pool
: DynamicThreadPool
<ThreadWorkerData
, ThreadWorkerResponse
>
12 data
?: ThreadWorkerData
,
14 transferList
?: TransferListItem
[]
15 ) => Promise
<ThreadWorkerResponse
>