diff --git a/core/fetch/src/fetch.ts b/core/fetch/src/fetch.ts index 8af4a3b..ba5525a 100644 --- a/core/fetch/src/fetch.ts +++ b/core/fetch/src/fetch.ts @@ -17,7 +17,6 @@ import { // --------------------------------------------------------------------------- /** HTTP status codes that trigger automatic retry by default */ -// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment const DEFAULT_RETRY_STATUS_CODES: ReadonlySet = /* @__PURE__ */ new Set([ 408, // Request Timeout 409, // Conflict diff --git a/core/fetch/src/utils.ts b/core/fetch/src/utils.ts index f506c0a..15e7df6 100644 --- a/core/fetch/src/utils.ts +++ b/core/fetch/src/utils.ts @@ -13,15 +13,12 @@ import type { // --------------------------------------------------------------------------- /** HTTP methods whose requests carry a body */ -// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment const PAYLOAD_METHODS: ReadonlySet = /* @__PURE__ */ new Set(['PATCH', 'POST', 'PUT', 'DELETE']); /** HTTP status codes whose responses never have a body */ -// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment export const NULL_BODY_STATUSES: ReadonlySet = /* @__PURE__ */ new Set([101, 204, 205, 304]); /** Content-types treated as plain text */ -// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment const TEXT_CONTENT_TYPES: ReadonlySet = /* @__PURE__ */ new Set([ 'image/svg', 'application/xml',