I am trying to document my functions using JSDoc syntax.
function foo(input){ return $('selector'); }
The above function accepts a single argument, which can be either a jQuery object or the element returned by document.getElementById .
What is a valid JSDoc type for getElementById return value?
For example, the following values ββare valid:
foo($('#input')); foo(document.getElementById('input'));
Also, where can I find out in the future?
javascript jsdoc
Drahcir
source share