Definitelytyped: angular-component-router.d.ts does not compile

Created on 12 Feb 2016  路  6Comments  路  Source: DefinitelyTyped/DefinitelyTyped

I have just updated angularjs.TypeScript.DefinitelyTyped in my project, but I am getting build errors because angular-component-router.d.ts does not compile - "Cannot find name 'Promise' (see screen shot).

I have temporarily resolved this by replacing "Promise<" with "IPromise<" but this doesn't seem right?

image

Most helpful comment

Why don't fix the issue and replace the "Promise" with "IPromise" like its used in the angular.d.ts then the problem is gone.

All 6 comments

Why don't fix the issue and replace the "Promise" with "IPromise" like its used in the angular.d.ts then the problem is gone.

Same thing here, had to edit locally for now.

ah, i see. please send a pull request.

https://github.com/DefinitelyTyped/DefinitelyTyped/pull/8746

thats my first pull request, don't know what todo more

:+1:

Was this page helpful?
0 / 5 - 0 ratings