From: Jérôme Benoit Date: Fri, 8 Sep 2023 12:41:48 +0000 (+0200) Subject: Update examples/typescript/http-client-pool/src/worker.ts X-Git-Tag: v2.6.43~7^2~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b73ad6c7f6a70bee68f86faeb755d395a7289196;p=poolifier.git Update 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 d9298e3f..b7c59629 100644 --- a/examples/typescript/http-client-pool/src/worker.ts +++ b/examples/typescript/http-client-pool/src/worker.ts @@ -11,7 +11,7 @@ class HttpClientWorker extends ThreadWorker { super({ node_fetch: async (workerData?: WorkerData) => { const response = await nodeFetch( - (workerData as WorkerData).input, + (workerData as WorkerData).input as URL | NodeFetchRequestInfo, workerData?.init as NodeFetchRequestInit ) // The response is not structured-cloneable, so we return the response text body instead.