是否可以在类成员之间借用文档?
我可以使用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
}