forked from martiensk/vuex-jsdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
22 lines (19 loc) · 706 Bytes
/
index.js
File metadata and controls
22 lines (19 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
* Define custon tags for documenting Vuex state, getters, mutations and actions properties.
* @module jsdoc-vuex-plugin
*/
const getterTag = require('./lib/getter');
const mutatorTag = require('./lib/mutator');
const actionTag = require('./lib/action');
exports.defineTags = (dictionary) => {
dictionary.defineTag(getterTag.name, getterTag.options);
dictionary.defineTag(mutatorTag.name, mutatorTag.options);
dictionary.defineTag(actionTag.name, actionTag.options);
};
exports.handlers = {
newDoclet(e) { /* eslint-disable-line */
getterTag.newDocletHandler(e);
mutatorTag.newDocletHandler(e);
actionTag.newDocletHandler(e);
}
};