Summary Wanted to try using TypeScript with allowJs and checkJs to see if it can improve code correctness. Webpack is a good case study for using TypeScript compiler on JavaScript projects. This is still a work in progress and I'm not sure if we can use TypeScript to check for errors without any code modifications. Issues in TypeScript and DefiantlyTyped TypeScript does not allow using _this as a