-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Description
The very first example of the jsDoc @param page shows that the type is optional:
/**
* @param somebody
*/
function sayHello(somebody) {
alert('Hello ' + somebody);
}And yet dox chokes when no type is given:
$ cat <<——— | dox --raw --debug
/**
* @param [a]
*/
———
[ { tags:
[ { type: 'param',
// …
optional: false } ],
/* … */ } ]Everything is ok when you pass a type:
$ cat <<——— | dox --raw --debug
/**
* @param {any} [a]
*/
———
[ { tags:
[ { type: 'param',
// …
optional: true } ],
/* … */ } ]Metadata
Metadata
Assignees
Labels
No labels