title: What's the meaning of "=>" in TypeScript? (Fat Arrow)
body: <p>I just start to learn TypeScript, and I saw there is a lot of code using this sytax <code>=&gt;</code>. I did some research by reading the <a href="https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md" rel="noreferrer">Specification of TypeScript Version 1.6</a> and some googling. I still cannot understand the meaning of <code>=&gt;</code>.
  <br/> To me, it feels like a <strong>pointer</strong> in C++. But I can't confirm it. If anyone can explain the following examples, that will be great. Thank you!</p>
  <p>Below are some examples that I found when I was reading the specification of Typescript :</p>
  <p><strong>Object Types</strong></p>
  <pre><code>var MakePoint: () =&gt; {  
      x: number; y: number;  
  };
  </code></pre>
  <p>Question: What is this code doing? Creating an object called <strong>MakePoint</strong>, where x and y fields are <strong>number</strong> type? Is this a constructor or a function for <code>MakePoint</code>?</p>
  <p><strong>Function Types</strong></p>
  <pre><code>function vote(candidate: string, callback: (result: string) =&gt; any) {  
   // ...  
  }
  </code></pre>
  <p>Question: What is the meaning of <code>=&gt; any</code>? Do you have to return a string type?</p>
  <p>Can anyone explain to me the difference or the purpose of these examples in plain english? Thank you for your time!</p>