How do I setup Visual Studio to give proper intellisense for Observable operators?


My application compiles and works fine, but I would like to solve this problem with incorrect intellisense.

At the top of my file I’ve tried the following

import 'rxjs/add/operators/map';

I’ve also tried making a global file for all the rxjs operators (basically a ts file with a bunch of import statements), and then included a VS reference like this at the top of my file.

/// <reference path="../../../app/rxjs-operators.ts" />

But I still end up with this problem. I also have this issue when using Promises. Compiles fine, but Visual Studio can resolve it…