build: reenable eslint type checking
[poolifier.git] / examples / typescript / http-server-pool / fastify-hybrid / @types / fastify / index.d.ts
index e1a64b1559ca4e9d8dc91ba424f08d0f08299863..166bfd330a00fa3efe91af3eab84e3d2966edd17 100644 (file)
@@ -3,10 +3,7 @@ import type { TransferListItem } from 'node:worker_threads'
 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 {
@@ -14,7 +11,7 @@ declare module 'fastify' {
     execute: (
       data?: ThreadWorkerData,
       name?: string,
-      transferList?: TransferListItem[]
+      transferList?: readonly TransferListItem[]
     ) => Promise<ThreadWorkerResponse>
   }
 }