是否可以使用jsdoc在类成员之间借用文档

时间:2020-10-23 22:52:18

标签: javascript typescript jsdoc

是否可以在类成员之间借用文档?

我可以使用jsdoc来borrow在Typescript中的类成员之间进行成员文档写作吗?

这是一个示例,成员m_aExtraValues是否可以从m_aValues借用文档。

class CEditConditions implements InterfaceDispatchListener {
   // ... omitted
   /**
    * List of values added to query
    * @property {Array<{table: string, id: string, value: string, operator: number|string,  simple?: string}>} m_aValues
    * @property {string} m_aValues[].table Tables in database script has id values, this id should match selected table in script
    * @property {string} m_aValues[].id Condition id for condition field found in table with selected table id
    * @property {string} m_aValues[].value Value set to condition
    * @property {number|string} m_aValues[].operator Number or name for operator used in condition
    * @property {string?} m_aValues[].simple Simplified name for condition value, this is used to simplify for user to understand what value is used in query
    */
   m_aValues: {table: string, id: string, value: string, operator: number|string,  simple?: string }[];
   /**
    * @borrows m_aValues as m_aExtraValues
    */
   m_aExtraValues: {table: string, id: string, value: string, operator: number|string,  simple?: string }[];

   // ... omitted
}

0 个答案:

没有答案