X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-hybrid%2F%40types%2Ffastify%2Findex.d.ts;h=018cac59cf6762769e0cc713b687a2463832718f;hb=6a3ecc500583fc68d5bbce89f8448ccd022ab900;hp=a995923928ed84ecafaf9afcbdc4ddee90884103;hpb=93b097acefb8dfea7259bff4cb9f6c337d34db94;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-hybrid/@types/fastify/index.d.ts b/examples/typescript/http-server-pool/fastify-hybrid/@types/fastify/index.d.ts index a9959239..018cac59 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/@types/fastify/index.d.ts +++ b/examples/typescript/http-server-pool/fastify-hybrid/@types/fastify/index.d.ts @@ -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,7 +14,7 @@ declare module 'fastify' { execute: ( data?: ThreadWorkerData, name?: string, - transferList?: TransferListItem[] + transferList?: readonly TransferListItem[] ) => Promise } }