From d18f532be2ebfec1aabc16f4c6a47c05a0be530b Mon Sep 17 00:00:00 2001 From: Jade Cabatlao Date: Sat, 7 Sep 2024 20:57:10 +0800 Subject: [PATCH] fix type error for getTotalBytes --- source/core/Ky.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/source/core/Ky.ts b/source/core/Ky.ts index 628529b2..66761525 100644 --- a/source/core/Ky.ts +++ b/source/core/Ky.ts @@ -384,6 +384,7 @@ export class Ky { ); } + // eslint-disable-next-line @typescript-eslint/ban-types protected _getTotalBytes(body?: globalThis.BodyInit | null): number { if (!body) { return 0;