@member (synonyms: @var) ============================= .. rst:directive:: @member :Synonyms: :rst:dir:`@var` :Syntax: ``@member [] []`` :Overview: The @member tag identifies any member that does not have a more specialized kind, such as “class”, “function”, or “constant”. A member can optionally have a type as well as a name. :Examples: .. code-block:: js :caption: Using @member with Data#point /** @class */ function Data() { /** @member {Object} */ this.point = {}; } Here is an example of using @var, a synonym of @member, to document a (virtual) variable ‘foo’. .. code-block:: js :caption: Using @var to document a virtual member /** * A variable in the global namespace called 'foo'. * @var {number} foo */ The above example is equivalent to the following: .. code-block:: js /** * A variable in the global namespace called 'foo'. * @type {number} */ var foo; .. rst:directive:: @var :Synonyms: :rst:dir:`@member`