title: Type a function declaration
body: <p>Given this type definition</p>
  
  <pre><code>type MyFunction = (prop: string) =&gt; boolean
  </code></pre>
  
  <p>I know it's possible to type an anonymous function</p>
  
  <pre><code>const myFunction: MyFunction = (prop) =&gt; true 
  </code></pre>
  
  <p>But I'm not sure on how to do this for a regular function definition</p>
  
  <pre><code>function myFunction (prop) {
    return true;
  }
  </code></pre>
  
  <p>Is this possible, and if so how? Thanks</p>
  
  <p>EDIT</p>
  
  <p>Just to clarify, I'm looking for a way to type the function using the same type definition, and not broken down inside the function, if it's at all possible. The main reason is to be able to re-use the type definition in other places.. callbacks, declaration files etc</p>