1 import type { TransferListItem
} from
'node:worker_threads'
3 import type * as fastify from
'fastify'
4 import type { DynamicThreadPool
} from
'poolifier'
6 import type { WorkerData
, WorkerResponse
} from
'../../src/types.ts'
8 declare module 'fastify' {
9 export interface FastifyInstance
extends fastify
.FastifyInstance
{
10 pool
: DynamicThreadPool
<WorkerData
, WorkerResponse
>
14 transferList
?: readonly TransferListItem
[]
15 ) => Promise
<WorkerResponse
>