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; });