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-server-pool/express-cluster...
[poolifier.git]
/
examples
/
typescript
/
http-client-pool
/
src
/
worker.ts
diff --git
a/examples/typescript/http-client-pool/src/worker.ts
b/examples/typescript/http-client-pool/src/worker.ts
index 3e4c6dd5cc62d5a9a4d3d898f078faa35fe19147..b7c5962914cd0e0e8ab9604182232875c392c771 100644
(file)
--- a/
examples/typescript/http-client-pool/src/worker.ts
+++ b/
examples/typescript/http-client-pool/src/worker.ts
@@
-1,6
+1,5
@@
import { ThreadWorker } from 'poolifier'
import { ThreadWorker } from 'poolifier'
-import nodeFetch from 'node-fetch'
-import {
+import nodeFetch, {
type RequestInfo as NodeFetchRequestInfo,
type ResponseInit as NodeFetchRequestInit
} from 'node-fetch'
type RequestInfo as NodeFetchRequestInfo,
type ResponseInit as NodeFetchRequestInit
} from 'node-fetch'
@@
-44,6
+43,4
@@
class HttpClientWorker extends ThreadWorker<WorkerData, WorkerResponse> {
}
}
}
}
-const httpClientWorker = new HttpClientWorker()
-
-export { httpClientWorker }
+export const httpClientWorker = new HttpClientWorker()