From 73de76d262651e24c7257852cbcb436d88c1f60d Mon Sep 17 00:00:00 2001 From: Amadeus Demarzi Date: Tue, 26 Mar 2024 19:19:07 -0700 Subject: [PATCH] More type hacks --- src/viewability/ViewabilityHelper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viewability/ViewabilityHelper.ts b/src/viewability/ViewabilityHelper.ts index 4649b01af..d432b7900 100644 --- a/src/viewability/ViewabilityHelper.ts +++ b/src/viewability/ViewabilityHelper.ts @@ -89,10 +89,10 @@ class ViewabilityHelper { // Setting default to 250. Default of 0 can impact performance when user scrolls fast. if (minimumViewTime > 0) { const timeoutId = setTimeout(() => { - // @ts-expect-error For some reason this is NodeJS.Timeout instead of number + // @ts-ignore For some reason this is NodeJS.Timeout instead of number this.timers.delete(timeoutId); this.checkViewableIndicesChanges(newViewableIndices); - // @ts-expect-error For some reason this is NodeJS.Timeout instead of number + // @ts-ignore For some reason this is NodeJS.Timeout instead of number this.timers.add(timeoutId); }, minimumViewTime); } else {