在我的角类(打字稿)我有一个构造函数: constructor(public http: Http) {
[...]
}
这是正确的方式进行jsDoc评论此构造函数的参数? /**
* @constructor
* @param {Http} Http service
* called when the ApiService is create
我无法找到在JSDOC中记录属性默认值时打印空间的方法。例如: /** * @prop {string} str='String with space' - The string. */ 这将被记录为: Name Type Default Description
str string 'String with space' - The string
任何建议如何做正确的吗?
我有一段代码,它返回什么有用: /**
* Close the web server
*
* @param {function} callback - Called after web server is stopped
*/
PolyApp.prototype.stop = function(callback) {
if (!this._listeningServer) {
如何记录类中的属性名称空间? /**
* @constructor User
* @param forename
* @param surname
*/
function User(forename, surname) {
/**
* How to document such a property-namespace?
*/
this.name