(comment)
| 172 | } |
| 173 | |
| 174 | function returnsSection(comment) { |
| 175 | return ( |
| 176 | comment.returns.length > 0 && |
| 177 | comment.returns.map(returns => |
| 178 | u( |
| 179 | 'paragraph', |
| 180 | [ |
| 181 | u('text', 'Returns '), |
| 182 | u('strong', formatType(returns.type)), |
| 183 | u('text', ' ') |
| 184 | ].concat(returns.description ? returns.description.children : []) |
| 185 | ) |
| 186 | ) |
| 187 | ); |
| 188 | } |
| 189 | |
| 190 | function throwsSection(comment) { |
| 191 | return ( |
no test coverage detected