Importing functions in typescript : <p>How can I reuse functions? I want to declare them once then include them in other files.</p>

<p>I created a module Global, containing some functions which I may want to add to other typescript files</p>

<p>I tried the following in another typescript file:</p>

<pre><code>import test = require("./Global");
import * as testFunctions from "Global"
</code></pre>

<p>Both lines give errors saying the module cannot be found. The module is definitely visible to typescript as I am actually referencing this module at other places in the file, calling it's functions, which is working (EXAMPLE: Global.stopSpinner()). </p>

<p>Im not sure what I am doing wrong however, as I am following examples. Could someone explain me the correct way?</p>
