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