I\'m starting writing AngularJS app using TypeScript. I have this simple module command:
(() => { angular .module(\'app\', []); })(); <
(() => { angular .module(\'app\', []); })();
Using AngularJS 1.x and TypeScript 2.x, I solved this issue by running:
npm install --save-dev @types/angular
and then include the following line on top of the .ts file:
import * as angular from "angular";
Reference: The Future of Declaration Files