Skip to content

Commit

Permalink
docs: generate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Feb 24, 2019
1 parent 4bd096a commit 9b185d8
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
Expand Up @@ -2288,6 +2288,26 @@ function quux (foo) {
}
// Message: Missing JSDoc @returns declaration.

/**
*
*/
const foo = () => ({
bar: 'baz'
})
// Message: Missing JSDoc @returns declaration.

/**
*
*/
const foo = bar=>({ bar })
// Message: Missing JSDoc @returns declaration.

/**
*
*/
const foo = bar => bar.baz()
// Message: Missing JSDoc @returns declaration.

/**
*
*/
Expand Down Expand Up @@ -2315,6 +2335,29 @@ function quux () {
*/
function quux () {
}

/**
*
*/
function quux (bar) {
bar.filter(baz => {
return baz.corge();
})
}

/**
* @returns Array
*/
function quux (bar) {
return bar.filter(baz => {
return baz.corge();
})
}

/**
* @returns Array
*/
const quux = (bar) => bar.filter(({ corge }) => corge())
````


Expand Down

0 comments on commit 9b185d8

Please sign in to comment.