<p dir="auto">I'm trying to use ng2 with ng1 so use ngUpgrade.<br>
But type definitions conflict.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error TS2403: Subsequent variable declarations must have the same type. Variable '$' must be of type 'cssSelectorHelper', but here has type ‘JQueryStatic’"><pre class="notranslate"><code class="notranslate">error TS2403: Subsequent variable declarations must have the same type. Variable '$' must be of type 'cssSelectorHelper', but here has type ‘JQueryStatic’
</code></pre></div>
<ul dir="auto">
<li>angularjs/angular.d.ts (<a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/angularjs/angular.d.ts">https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/angularjs/angular.d.ts</a>)</li>
<li>angular2 (npm-bundled definitions)</li>
</ul>
<p dir="auto">Cannot I use angularjs and angular2 together with typescript?</p>
<p dir="auto"><strong>I'm submitting a ...</strong>  (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] feature request"><pre class="notranslate"><code class="notranslate">[x] feature request
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">The *.ngfactory.ts files generated by <code class="notranslate">ngc</code> are huge. In my case 1.5MB in total (80 Components). And the code doesn't become much smaller with minify/mangle as there is <code class="notranslate">this.</code> before 95% of all statements.</p>
<p dir="auto">Example Component: <a href="https://gist.github.com/sod/049ce1f29f6c6d83bcfdd99ecef49513">gist.github.com/sod/049ce...</a><br>
<code class="notranslate">ngc</code> output for that component: <a href="https://gist.github.com/sod/ca6dc8aab403481ec84a7f308906a25a">gist.github.com/sod/ca6dc...</a></p>
<p dir="auto">If I transcode &amp; mangle this factory alone, the output is 66kb for this one component.</p>
<p dir="auto"><strong>Expected/desired behavior</strong></p>
<p dir="auto">More minify friendly output of <code class="notranslate">ngc</code>.</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.5</li>
</ul>