Skip to content

Commit

Permalink
More type hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
amadeus committed Mar 27, 2024
1 parent 1adac87 commit 73de76d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/viewability/ViewabilityHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 73de76d

Please sign in to comment.