<p dir="auto">Hey everyone!</p>
<p dir="auto">I am using bluebird as a replacement for global Promise object. I'be tried to update typedefs to latest version, published by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lhecker/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lhecker">@lhecker</a>, and ran into problem: global <code class="notranslate">Promsie</code> is not overloaded now by default.<br>
How cam I achieve previous behaviour? Maybe we could have bluebird-global.d.ts, for example?</p>
<p dir="auto">Hi.</p>
<p dir="auto">I am having a series of really painful issues when I want to use the last version of angular.d.ts.</p>
<p dir="auto">This is the first one.</p>
<p dir="auto">I am using Visual Studio Community with the latest Web Essentials v2.6.36. I have AngularJS v1.4.5 installed. When I try to use angular.module in my .ts file, below</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="((): void =&gt; {
    'use strict';    

    angular
        .module('app', [
            'app.core',
            'app.layout',
            'app.services',
            'app.widgets',
            'app.blocks'
        ]);
})();;"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-k">void</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
    <span class="pl-s">'use strict'</span><span class="pl-kos">;</span>    

    <span class="pl-s1">angular</span>
        <span class="pl-kos">.</span><span class="pl-en">module</span><span class="pl-kos">(</span><span class="pl-s">'app'</span><span class="pl-kos">,</span> <span class="pl-kos">[</span>
            <span class="pl-s">'app.core'</span><span class="pl-kos">,</span>
            <span class="pl-s">'app.layout'</span><span class="pl-kos">,</span>
            <span class="pl-s">'app.services'</span><span class="pl-kos">,</span>
            <span class="pl-s">'app.widgets'</span><span class="pl-kos">,</span>
            <span class="pl-s">'app.blocks'</span>
        <span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">the compiler says "The property module doesn't exist on value of type 'typeof angular'".</p>
<p dir="auto">Now I immediately guessed there must be something wrong with the angular.d.ts definition and I was correct. The definition file has errors and I would like you to help me out here, because I keep bumping my head for 3 hours and can't find the solution.</p>
<p dir="auto">So I get the error written in the title: "Angular ambient external module declaration must be defined in global context"</p>
<p dir="auto">The code where I get the error:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare module 'angular' {
    export = angular;
}"><pre class="notranslate"><span class="pl-s1">declare</span> <span class="pl-smi">module</span> <span class="pl-s">'angular'</span> <span class="pl-kos">{</span>
    <span class="pl-s1">export</span> <span class="pl-c1">=</span> <span class="pl-s1">angular</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Oh and BTW, when the Angular module is being declared the debugger complains: "duplicate identifier 'angular'" (line 26)</p>
<p dir="auto">I would really appreciate if anyone could help me out with this one. Thank you a lot.</p>