title: Define a functions return type so it'll be shown in the tooltip when writing a function call
body: <p>I want to be able to set a functions return type so that my IDE can apply Intellisense.</p>
  
  <p>e.g. i have a function that takes an object and creates/returns a HTMLElement from that.
  I want that when i call that function like that:</p>
  
  <pre><code>var myElement = document.createElementWithProperties({elementType: 'div', id: 'myElement',style:{background: 'blue'}});
  </code></pre>
  
  <p>On the next Line when i enter "myElement." it would suggest me for example appendChild.</p>
  
  <p><a href="https://i.stack.imgur.com/Ir3P8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ir3P8.png" alt="document.createElement example"></a></p>