- 
                Notifications
    
You must be signed in to change notification settings  - Fork 58
 
Home
Name of the documented item is self parsed, hence @name doesn't exist.
Describes the documented item.
/**
 * Here is the description
 * On several lines if you will
 */Notes:
- Parsed as markdown.
 - Comes on top of a comment, before any annotation.
 
Defines the access of the documented item.
/**
 * @access private
 * @access public
 */Notes:
- None is considered 
public. 
Defines if the documented item is an alias of another item.
/**
 * @alias other-item
 */Notes:
- The other item will automatically have a key named 
aliasedcontaining the name of aliases. 
Describes the author of the documented item.
/**
 * @author Author's name
 */Describes the type of a variable.
/**
 * @datatype Bool
 *//**
 * @datatype Bool | String
 */Notes:
- Has no effect on functions and mixins
 
Defines if the documented item is deprecated.
/**
 * @deprecated
 *//**
 * @deprecated Deprecation related message
 */Notes:
- Message is optional.
 - Message is parsed as markdown.
 
Describes a use case for the documented item.
/**
 * @example
 * 4 + 2 = 6
 * 4 x 2 = 8
 */Notes:
- Multiple 
@exampleallowed on the same item. 
Defines a line which won't be documented.
/**
 * @ignore Message
 */Notes:
- Multiple 
@ignoreallowed on the same item. 
Describes a link.
/**
 * @link http://some.url
 * @link http://some.url Optional caption
 */Notes:
- Caption is optional.
 - Multiple 
@linkallowed on the same item. 
Describes a parameter of the documented item.
/**
 * @param {type | othertype} $name
 * @param {type} $name - description
 * @param {type} $name (default value) - description of the parameter
 */Notes:
- Default value is optional.
 - Description is optional.
 - Description is parsed as markdown.
 
Defines if the documented item requires any other item.
/**
 * @requires other-item
 * @requires {type} whatever
 */Notes:
- Default type is 
function. If the documented item requires anything else than a function, add{type}before the name, where type is eitherfunction,mixinorvariable. - The other item will automatically have a key named 
usedBycontaining the name of function requiring it. - Multiple 
@requiresallowed on the same item. 
Describes the return statement of the documented item.
/**
 * @returns {type | othertype}
 *//**
 * @returns {type} Description of the return statement
 */Notes:
- Description is optional.
 - Description is parsed as markdown.
 
Describes the version at which the documented item has been implemented.
/**
 * @since version 4.2 (alpha release)
 */Notes:
- Description is parsed as markdown.
 
Describes the error thrown by the documented item.
/**
 * @throws Error related message
 */Notes:
- Description is parsed as markdown.
 - Multiple 
@throwsallowed on the same item. 
Defines any task to do regarding the documented item.
/**
 * @todo Task to be done
 */Notes:
- Description is parsed as markdown.
 - Multiple 
@todoallowed on the same item.