title: How to export a function type?
body: <p>This is how I export and import typescript interface for objects. Everything works just fine. Giving this as an example of what I'm trying to achieve, but with functions.</p>
  
  <p><strong>Module 1</strong></p>
  
  <pre><code>export interface MyInterface {
    property: string;
  }
  </code></pre>
  
  <p><strong>Module 2</strong></p>
  
  <pre><code>import {MyInterface} from './module1';
  
  const object: MyInterface = {
      property: 'some value'
  };
  </code></pre>
  
  <hr>
  
  <p>The code below gives me an error "TS2304: Cannot find name 'myFunction'". How do I export and import a function type?</p>
  
  <p><strong>Module 1</strong></p>
  
  <pre><code>export let myFunction: (argument: string) =&gt; void;
  </code></pre>
  
  <p><strong>Module 2</strong></p>
  
  <pre><code>import {myFunction} from './module1';
  
  let someFunction: myFunction; 
  </code></pre>