Skip to content

Commit

Permalink
chore: ignore TS2322
Browse files Browse the repository at this point in the history
  • Loading branch information
Mura-Mi committed Oct 5, 2024
1 parent 5a618f9 commit b3b60bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b3b60bc

Please sign in to comment.