<p dir="auto">If possible can Deno.emit just include all typings from other files inside it's output, instead of importing them from other files. Currently, it adds imports using <code class="notranslate">.ts</code> and my theory is that these imports then somehow break the behavior in node.js or VSC making it so the library is not able to have proper typings available.</p>
<p dir="auto">For example:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23035000/129134366-e1599d8a-7e48-47a9-86c4-4a8e1c35d834.png"><img src="https://user-images.githubusercontent.com/23035000/129134366-e1599d8a-7e48-47a9-86c4-4a8e1c35d834.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">These imports should just write out the types directly in this file at the top instead of importing them.</p>
<p dir="auto">With <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="523264961" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3352" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/3352/hovercard" href="https://github.com/denoland/deno/pull/3352">#3352</a>, bundles are going to be a mechanism to distribute "libraries" in Deno.  It is logical that someone might want to use a distribution bundle in another Deno workload (or consume it in other runtimes) and would want to have type safe consumption of those files, therefore we should generate the declarations along with a bundle.</p>
<p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="453754839" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/2475" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/2475/hovercard" href="https://github.com/denoland/deno/issues/2475">#2475</a>.</p>