JSDoc"要求"出现两次?

时间:2017-06-14 20:45:12

标签: javascript jsdoc

"需要"是否正常?在输出文档中出现两次?如果没有,那么记录所需模块的正确方法是什么,因此它们只出现一次?

//Imports
import * as C from "../support/constants.js";
import Dispatcher from "../support/Dispatcher.js";

/**
 * @description The <strong>TextField</strong> class creates instances of either clickable and animatable text or static text accessible via the <strong>"element"</strong> property.
 * @class
 * @requires constants
 * @requires Dispatcher
 * 
 */
class TextField extends Dispatcher {

    /**
     * @param {string} label - Textual content set as the <strong>"textContent"</strong> property of the TextField's HTMLElement.
     * @param {string} id - DOMString representing the <strong>"id"</strong> property of the TextField's HTMLElement.
     * @param {string} href - The URL assigned to the <strong>"href"</strong> property of the TextField's HTMLElement.
     * 
     */
    constructor(label, id, href) {

        super();

        this._label = label;
        this._id = id;
        this._href = href;

        this._init();
    }

    ...

enter image description here

0 个答案:

没有答案