Skip to main content

@member

Syntax

@member
@member {type}
@member {type} name

Overview

@member marks a symbol as a member (property or variable). Use it when JSDoc cannot automatically determine that a symbol is a member, or to explicitly provide its type and name.

Example

/** @member {HTMLElement} */
MyClass.prototype.element = null;
/**
* @class
*/
function MyClass() {
/**
* The element associated with this instance.
* @member {HTMLElement}
*/
this.element = null;
}

See also

Official reference: jsdoc.app/tags-member