Skip to content

Commit

Permalink
Corrected support for throws
Browse files Browse the repository at this point in the history
  • Loading branch information
qbradq committed Mar 25, 2016
1 parent c5b39d6 commit e4f91e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions templates/template.md.ejs
Expand Up @@ -63,6 +63,13 @@
<? }) ?>
<? } ?>

<? if (comment.throwsTags.length > 0) { ?>
### Throws:
<? comment.throwsTags.forEach(function(throws) { ?>
* **<?= throws.joinedTypes ?>**
<? }) ?>
<? } ?>

<? } ?>
<? }) ?>

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/events.js
Expand Up @@ -5,7 +5,7 @@
* @fires someOtherEvent
* @listens someGlobalEvent
* @listens SomeClass#event:myEvent
* @throws Error
* @throws {Error}
*/
function foo() {}

Expand Down

0 comments on commit e4f91e4

Please sign in to comment.