fix: refine type definition for transferList
[poolifier.git] / examples / typescript / http-server-pool / fastify-hybrid / @types / fastify / index.d.ts
index 38a4b0fafdffb8e0d3961bc715bb46dc1ca07c71..018cac59cf6762769e0cc713b687a2463832718f 100644 (file)
@@ -1,5 +1,8 @@
+import type { TransferListItem } from 'node:worker_threads'
+
 import type * as fastify from 'fastify'
-import { type DynamicThreadPool } from 'poolifier'
+import type { DynamicThreadPool } from 'poolifier'
+
 import {
   type ThreadWorkerData,
   type ThreadWorkerResponse
@@ -11,8 +14,7 @@ declare module 'fastify' {
     execute: (
       data?: ThreadWorkerData,
       name?: string,
-      transferList?: TransferListItem[]
+      transferList?: readonly TransferListItem[]
     ) => Promise<ThreadWorkerResponse>
-    listTaskFunctions: () => string[]
   }
 }