From 2b099bf720dbf4bd7848897f8aac043ce08c414c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 14 Aug 2023 17:15:21 +0200 Subject: [PATCH] refactor: remove duplicate import in examples MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- CHANGELOG.md | 4 ++++ examples/typescript/http-client-pool/src/worker.ts | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) 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' -- 2.34.1