I added the systemjs.d.ts file to my project in WebStorm IDE. This file includes two uses of the class Promise, which are marked as errors by TSC. This is extremely weird because I've already added the es6-promise.d.ts file to my project, and it does solve the same problem for the mongodb.d.ts file. So why in one file it's recognized and in the other it's not? All the .d.ts files are located in the same foler (root-folder\DefinitelyTyped).
The errors I get:
TS2304: Cannot find name 'Promise'
systemjs.d.ts: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/systemjs/systemjs.d.ts
Any help will be profoundly appreciated!
I solved it. I forgot to add a reference comment.
Adding the following line to the beginning of the file solved the problem:
/// <reference path='es6-promise.d.ts' />