The function myFun
is defined in the included file:
<include src="my-funs.js"><script>
The include file has // @ts-check
and a JsDoc comment for the function:
/**
*
* @param {*} type
* @param {*} attrib
* @param {*} inner
* @returns {*}
*/
function myFun(type, attrib, inner) {
// code
}
I am using vscode and it tells me the error in the title.
I expected JsDoc/typescript to find the declaration of myFun
, but obviously I was wrong.
What am I missing? (I am trying to learn some JsDoc to test if it is useable currently for me and did not expect problems on this level.)