From b3b60bcda0f82aaeb939e09b3e2f6378cde53308 Mon Sep 17 00:00:00 2001 From: "Takuya \"Mura-Mi\" Murakami" Date: Sat, 5 Oct 2024 22:00:07 +0900 Subject: [PATCH] chore: ignore TS2322 --- src/version.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/version.mjs b/src/version.mjs index c89e4d48..519d1560 100644 --- a/src/version.mjs +++ b/src/version.mjs @@ -198,6 +198,9 @@ async function fetchWithRetries(url, maxRetries = 5) { try { const res = await fetch( url, + // dispatcher is `ProxyAgent | undefined`, which is assignable to `Dispatcher | undefined` because + // ProxyAgent extends Dispatcher, but TS2322 is reported. + // @ts-ignore: { dispatcher }, ); if (res.status === 200 || iterationCount > maxRetries) {