repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/http-client-pool/types/node-20...
[poolifier.git]
/
examples
/
typescript
/
http-server-pool
/
fastify-hybrid
/
src
/
types.ts
diff --git
a/examples/typescript/http-server-pool/fastify-hybrid/src/types.ts
b/examples/typescript/http-server-pool/fastify-hybrid/src/types.ts
index 2ef0d1ce8813d189a7c63e6b0e5f1f40cef3e212..179ac65edd4cd708c4babe4728599a961fe9c1a1 100644
(file)
--- a/
examples/typescript/http-server-pool/fastify-hybrid/src/types.ts
+++ b/
examples/typescript/http-server-pool/fastify-hybrid/src/types.ts
@@
-1,5
+1,4
@@
-import type { Worker } from 'worker_threads'
-import type { PoolOptions } from 'poolifier'
+import type { ThreadPoolOptions } from 'poolifier'
export interface ClusterWorkerData extends FastifyPoolifierOptions {
port: number
export interface ClusterWorkerData extends FastifyPoolifierOptions {
port: number
@@
-22,7
+21,7
@@
export interface ThreadWorkerResponse<T = unknown> {
data: T
}
data: T
}
-export interface FastifyPoolifierOptions extends
PoolOptions<Worker>
{
+export interface FastifyPoolifierOptions extends
ThreadPoolOptions
{
workerFile: string
minWorkers?: number
maxWorkers?: number
workerFile: string
minWorkers?: number
maxWorkers?: number