Skip to content

Commit

Permalink
Docs: Clarify Closure type hint expectation (fixes #5231) (#6714)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas authored and ilyavolodin committed Jul 20, 2016
1 parent 95ea25a commit 75d2d43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/rules/valid-jsdoc.md
Expand Up @@ -31,6 +31,8 @@ This rule enforces valid and consistent JSDoc comments. It reports any of the fo

This rule does not report missing JSDoc comments for classes, functions, or methods.

**Note:** This rule does not support all of the Google Closure documentation tool's use cases. As such, some code such as `(/**number*/ n => n * 2);` will be flagged as missing appropriate function JSDoc comments even though `/**number*/` is intended to be a type hint and not a documentation block for the function. We don't recommend using this rule if you use type hints in this way.

Examples of **incorrect** code for this rule:

```js
Expand Down

0 comments on commit 75d2d43

Please sign in to comment.