JS: mention @type tag in qhelp

This commit is contained in:
Asger F
2018-10-31 10:45:20 +00:00
parent ad7ecc1df0
commit e670919807

View File

@@ -15,6 +15,11 @@ Assigning a variable to itself typically indicates a mistake such as a missing
Carefully inspect the assignment to check for misspellings or missing qualifiers.
</p>
<p>
If the self-assignment is intentional, and is needed for documentation or optimization purposes,
add a JSDoc comment with a <tt>@type</tt> tag. This will indicate the self-assignment is intentional.
</p>
</recommendation>
<example>