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
/
websocket-server-pool
/
ws-hybrid
/
src
/
types.ts
diff --git
a/examples/typescript/websocket-server-pool/ws-hybrid/src/types.ts
b/examples/typescript/websocket-server-pool/ws-hybrid/src/types.ts
index 49f115dea5e9281737c3f48ddee8b5b74cd4c29b..d52dbf2396569595aae7918775f208bdcd54154f 100644
(file)
--- a/
examples/typescript/websocket-server-pool/ws-hybrid/src/types.ts
+++ b/
examples/typescript/websocket-server-pool/ws-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 enum MessageType {
echo = 'echo',
export enum MessageType {
echo = 'echo',
@@
-15,7
+14,7
@@
export interface DataPayload {
number?: number
}
number?: number
}
-export interface ClusterWorkerData extends
PoolOptions<Worker>
{
+export interface ClusterWorkerData extends
ThreadPoolOptions
{
port: number
workerFile: string
minWorkers?: number
port: number
workerFile: string
minWorkers?: number