I\'m using TypeScript to do type checking of JS files (https://www.typescriptlang.org/docs/handbook/type-checking-javascript-files.html), by adding a // @ts-check
// @ts-check