X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-client-pool%2Fsrc%2Fworker.ts;h=b7c5962914cd0e0e8ab9604182232875c392c771;hb=41e3e08eb7fbcde0a69cea17e697aacb222990a6;hp=d9298e3fa6b8fc3a76fc0b291c92d1471e667b6d;hpb=facb41d7d33bd6c11970da5e946c51347824fd54;p=poolifier.git 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.