title: TypeScript: How to import ES6 Map (NetBeans can't find)
body: <p>We switched to from System.js to WebPack, and now NetBeans doesn't know where to find certain types, like <code>Map</code> and <code>Promise</code>. The compiler is ok. It's just about code completion. I assume it's because the TypeScript plugin only knows how to deal with <code>systemjs.config.js</code>.</p>
  
  <p>I have tried this:</p>
  
  <pre><code>$ find -name Map*
  ...
  ./ui/src/main/webapp/node_modules/rxjs/util/Map.js
  ./ui/src/main/webapp/node_modules/rxjs/util/Map.d.ts
  ./ui/src/main/webapp/node_modules/rxjs/src/util/Map.ts
  </code></pre>
  
  <p>So I tried these:</p>
  
  <pre><code>//import {Map} from 'rxjs/util/Map'
  import {Map} from 'rxjs/src/util/Map'
  </code></pre>
  
  <p>But they are just (respectively)</p>
  
  <pre><code>export declare const Map: any
  ---
  export const Map = root.Map || (() =&gt; MapPolyfill)();
  </code></pre>
  
  <p>and NetBeans complain on any normal use of the type.<br>
  I was also looking at <code>core-js</code> (after adding it to systemjs.config.js):</p>
  
  <pre><code>import {Map} from 'core-js/modules/es6.map';
  </code></pre>
  
  <p>But NetBeans says 'can't find module ...'.<br>
  What should I import to declare <code>Map</code> to an unaware tool?</p>