fix: refine type definition for transferList
[poolifier.git] / examples / typescript / http-server-pool / fastify-hybrid / @types / fastify / index.d.ts
index e1a64b1559ca4e9d8dc91ba424f08d0f08299863..018cac59cf6762769e0cc713b687a2463832718f 100644 (file)
@@ -14,7 +14,7 @@ declare module 'fastify' {
     execute: (
       data?: ThreadWorkerData,
       name?: string,
-      transferList?: TransferListItem[]
+      transferList?: readonly TransferListItem[]
     ) => Promise<ThreadWorkerResponse>
   }
 }