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