From: Jérôme Benoit Date: Fri, 30 Aug 2024 15:44:30 +0000 (+0200) Subject: docs: add missing `mapExecute` type definition to fastify examples X-Git-Tag: v4.2.10~16 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=83572f443b105de35a127423b53909fab3bd6ced;p=poolifier.git docs: add missing `mapExecute` type definition to fastify examples Signed-off-by: Jérôme Benoit --- 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 4f666be0..e5609e14 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 @@ -11,6 +11,11 @@ declare module 'fastify' { name?: string, transferList?: readonly TransferListItem[] ) => Promise + mapExecute: ( + data: Iterable, + name?: string, + transferList?: readonly TransferListItem[] + ) => Promise pool: DynamicThreadPool } } diff --git a/examples/typescript/http-server-pool/fastify-worker_threads/@types/fastify/index.d.ts b/examples/typescript/http-server-pool/fastify-worker_threads/@types/fastify/index.d.ts index e78ab0d9..7e7046ad 100644 --- a/examples/typescript/http-server-pool/fastify-worker_threads/@types/fastify/index.d.ts +++ b/examples/typescript/http-server-pool/fastify-worker_threads/@types/fastify/index.d.ts @@ -11,6 +11,11 @@ declare module 'fastify' { name?: string, transferList?: readonly TransferListItem[] ) => Promise + mapExecute: ( + data: Iterable, + name?: string, + transferList?: readonly TransferListItem[] + ) => Promise pool: DynamicThreadPool } }