class.md

August 8, 2019 ยท View on GitHub

@class Back

This tag is the same with @constructor

The tag @class, a.k.a @constructor is mainly used for marking a function as being a constructor, which means that callers need to use new statement to create an instance of such a method.

/**
* a constructor for Person objects
* @constructor
*/
function Person () {}

const person = new Person();