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