
TIL: You can add
//
@ts
-check
to the beginning of a vanilla JS file to enable TypeScript checking on the file.
gist.github.com/xdesro/27b44085a997c5b793a581ff88f54c75