From 89913de61a3a12d8f6789af576d568b9c772fe17 Mon Sep 17 00:00:00 2001 From: Vedansh Shetti Date: Sat, 3 Oct 2026 00:02:34 +0200 Subject: [PATCH] fix: add type annotation for ReviewLike in detectRateAnomaly function --- src/rate-limit/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rate-limit/index.ts b/src/rate-limit/index.ts index 9b04153..8427f0b 100644 --- a/src/rate-limit/index.ts +++ b/src/rate-limit/index.ts @@ -166,7 +166,7 @@ export async function detectRateAnomaly( per_page: 100, })) { acc.push(...(page.data as ReviewLike[])); - const allBeforeWindow = page.data.every((r) => { + const allBeforeWindow = page.data.every((r: ReviewLike) => { const submittedAt = (r as ReviewLike).submitted_at; return !submittedAt || Date.parse(submittedAt) < windowStartMs; });