Closed
Description
TypeScript Version:
2.0.2
Code
https://github.com/jonrimmer/typescript-bug
npm install
./node_modules/.bin/tsc bug.ts
Expected behavior:
It should compile without problems.
Actual behavior:
It gives the following error:
node_modules/angular-ui-router/commonjs/ng1/services.d.ts(2,27): error TS2686: Identifier 'angular' must be imported from a module
This is despite the fact that the @type/angular definitions includes a global angular var declaration.