test: add fixed priority queue get() test
[poolifier.git] / examples / typescript / http-server-pool / fastify-hybrid / @types / fastify / index.d.ts
CommitLineData
8faed44f 1import type { TransferListItem } from 'node:worker_threads'
ded253e2 2
3b311539 3import type * as fastify from 'fastify'
ef083f7b 4import type { DynamicThreadPool } from 'poolifier'
ded253e2 5
80115618 6import type { ThreadWorkerData, ThreadWorkerResponse } from '../../src/types.ts'
3b311539
JB
7
8declare module 'fastify' {
9 export interface FastifyInstance extends fastify.FastifyInstance {
10 pool: DynamicThreadPool<ThreadWorkerData, ThreadWorkerResponse>
11 execute: (
12 data?: ThreadWorkerData,
13 name?: string,
6a3ecc50 14 transferList?: readonly TransferListItem[]
3b311539
JB
15 ) => Promise<ThreadWorkerResponse>
16 }
17}