How to jsdoc indicate that @param is the MouseEvent?
How to jsdoc indicate that @param is the MouseEvent? the HTMLElement DIV?
/**
* @param {MouseEvent} e
*/
window.clickToButton = function(e)
{
console.dir(e);
}
/**
* @param {HTMLElement} d
*/
window.clickToDiv = function(d)
{
console.dir(d);
}
No comments:
Post a Comment