79463840

Date: 2025-02-24 14:30:57
Score: 1
Natty:
Report link

Since window.setInterval is returning a number (see http://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval#return_value) we can safely cast it to number :

let onSizeChangeSetInterval = setInterval(() => {...}, 30) as any as number;

That way we can avoid any server side issues, and get rid of the Typescript error.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: ktsangop