repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): bump @types/node
[poolifier.git]
/
examples
/
typescript
/
http-server-pool
/
fastify-worker_threads
/
src
/
types.ts
diff --git
a/examples/typescript/http-server-pool/fastify-worker_threads/src/types.ts
b/examples/typescript/http-server-pool/fastify-worker_threads/src/types.ts
index 0c92e5b24a89db14ac60c58880d8140290d9a195..97c2c540df9edbf44a01c01f6b8517c3d04a4d73 100644
(file)
--- a/
examples/typescript/http-server-pool/fastify-worker_threads/src/types.ts
+++ b/
examples/typescript/http-server-pool/fastify-worker_threads/src/types.ts
@@
-1,5
+1,4
@@
-import type { Worker } from 'node:worker_threads'
-import type { PoolOptions } from 'poolifier'
+import type { ThreadPoolOptions } from 'poolifier'
export interface BodyPayload {
number?: number
export interface BodyPayload {
number?: number
@@
-13,7
+12,7
@@
export interface WorkerResponse<T = unknown> {
body: T
}
body: T
}
-export interface FastifyPoolifierOptions extends
PoolOptions<Worker>
{
+export interface FastifyPoolifierOptions extends
ThreadPoolOptions
{
workerFile: string
minWorkers?: number
maxWorkers?: number
workerFile: string
minWorkers?: number
maxWorkers?: number