import type { TransferListItem } from 'node:worker_threads'
+
import type * as fastify from 'fastify'
-import { type DynamicThreadPool } from 'poolifier'
-import { type WorkerData, type WorkerResponse } from '../../src/types.ts'
+import type { DynamicThreadPool } from 'poolifier'
+
+import type { WorkerData, WorkerResponse } from '../../src/types.ts'
declare module 'fastify' {
export interface FastifyInstance extends fastify.FastifyInstance {
execute: (
data?: WorkerData,
name?: string,
- transferList?: TransferListItem[]
+ transferList?: readonly TransferListItem[]
) => Promise<WorkerResponse>
}
}