Skip to content

Instantly share code, notes, and snippets.

@jacopotarantino
Created April 25, 2016 15:54
Show Gist options
  • Save jacopotarantino/4949a38e227fcebbbb1e8cc9ee7d7251 to your computer and use it in GitHub Desktop.
Save jacopotarantino/4949a38e227fcebbbb1e8cc9ee7d7251 to your computer and use it in GitHub Desktop.
Example of adding a tag to jsdoc
'use strict'
/**
* JSDoc dictionary that enables `@sideffects` as a tag.
*/
exports.defineTags = function (dictionary) {
dictionary.defineTag('sideeffects', {
onTagged: function (doclet, tag) {
doclet.has_sideffects = tag.value || true
},
synonyms: ['sideffects']
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment