title: Exporting a function on typescript "declaration or statement expected"
body: <p>I realize this is really simple but typescript seems to have changed a lot in the last years and i just cant get this done with previous answers i found here on stack overflow.</p>
  
  <pre><code>let myfunction = something that returns a function
  
  export myfunction;
  </code></pre>
  
  <p>I get an error "declaration or statement expected"</p>
  
  <p>How can i export a function from a really simple ts file to be able to use the function in another ts file?</p>