title: How to type hint Google Types in Google Scripts?
body: <p>I am trying to typehint a bunch of javascript in Google Script, and I have gotten as far as trying this:</p>
  <pre><code>/**
   *  Get (named) range given by name
   *
   *  @param {String} name 
   *  @return {Range}
   *
   */
  function getRange(name) {
    return SpreadsheetApp.getActiveSpreadsheet().getRangeByName(name);
  }
  </code></pre>
  <p>Which displays well and gives the same typehint as the builtin getRangeByName, however it does not actually work, i.e. the auto-complete script editor does not autocomplete when I type something like <code>getRange(&quot;hello&quot;).get&quot;</code>, like it should. Should I be name spacing the <code>Range</code> or am I doing something else wrong?</p>