018cac59cf6762769e0cc713b687a2463832718f
1 import type { TransferListItem
} from
'node:worker_threads'
3 import type * as fastify from
'fastify'
4 import type { DynamicThreadPool
} from
'poolifier'
8 type ThreadWorkerResponse
9 } from
'../../src/types.ts'
11 declare module 'fastify' {
12 export interface FastifyInstance
extends fastify
.FastifyInstance
{
13 pool
: DynamicThreadPool
<ThreadWorkerData
, ThreadWorkerResponse
>
15 data
?: ThreadWorkerData
,
17 transferList
?: readonly TransferListItem
[]
18 ) => Promise
<ThreadWorkerResponse
>