diff options
Diffstat (limited to 'remarks/WR-003.txt')
| -rw-r--r-- | remarks/WR-003.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/remarks/WR-003.txt b/remarks/WR-003.txt new file mode 100644 index 0000000..7a04413 --- /dev/null +++ b/remarks/WR-003.txt @@ -0,0 +1,22 @@ + + + + + + + +Document: WR-003 P. Webb + 2024.11.05 + + setInterval - Type "Timer" is not assignable to type "number" + +Body + + Ran into a linting issue with Typescript when using setInterval for + something. This comment from 2017[1] saved me: + + > Use `window.setInterval` instead. + +References + + [1] <https://github.com/TypeStrong/atom-typescript/issues/1053#issuecomment-321126192> |
