Typescript: export all functions in a namespace
<p>Lets say I have a typescript file <strong>Utils</strong> with a bunch of exported functions:</p>

<pre><code>export function utilOne(){}
export function utilTwo(){}
</code></pre>

<p>I added index.d.ts file to this folder where I export * from the Utils file:</p>

<pre><code>export * from './Utils';
</code></pre>

<p>In my other classes I'd like to access functions utilOne and utilTwo via utils namespace, like: </p>

<pre><code>utils.utilOne();
</code></pre>

<p>I know that I can import it like this:</p>

<pre><code>import * as utils from "./Utils";
</code></pre>

<p>However, as I will be using utils a lot, I would like to be able to export utils in a namespace, something like:</p>

<pre><code>export {* as utils} from './Utils';   // this doesn't work
</code></pre>

<p>and then use:</p>

<pre><code>import * from "./Utils";
</code></pre>

<p>However the export {* as utils} doesn't work. I could put all the functions of Utils to a module "utils" and export it, but I am not sure if this is a good practice. Is there a proper way to do this?</p>