From: Jérôme Benoit Date: Mon, 14 Aug 2023 15:15:21 +0000 (+0200) Subject: refactor: remove duplicate import in examples X-Git-Tag: v2.6.26~34 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2b099bf720dbf4bd7848897f8aac043ce08c414c;p=poolifier.git refactor: remove duplicate import in examples Signed-off-by: Jérôme Benoit --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 7eb01555..8d1da823 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Add kill handler to worker options allowing to execute custom code when worker is killed. + ## [2.6.25] - 2023-08-13 ### Added diff --git a/examples/typescript/http-client-pool/src/worker.ts b/examples/typescript/http-client-pool/src/worker.ts index 4dc3a6a9..b7c59629 100644 --- 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 nodeFetch from 'node-fetch' -import { +import nodeFetch, { type RequestInfo as NodeFetchRequestInfo, type ResponseInit as NodeFetchRequestInit } from 'node-fetch'