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