title: What is the JSDoc type for document.getElementById('myID') and a jQuery Element?
body: <p>I'm trying to document my functions with JSDoc syntax.</p>
  
  <pre><code>/**
   * 
   * My Description
   * 
   * @param {JQuery|???} input
   * @returns {JQuery}
   */
  function foo(input){
      return $('selector');
  }
  </code></pre>
  
  <p>The above function accepts a single argument which can be either a JQuery object, or an element returned by <code>document.getElementById</code>.</p>
  
  <p><strong>What is the valid JSDoc type for the return value of <code>getElementById</code>?</strong></p>
  
  <p>For example, the following are both valid:</p>
  
  <pre><code>foo($('#input'));
  foo(document.getElementById('input'));
  </code></pre>
  
  <p>Also, where can I find this out in future?</p>