MCPcopy Create free account
hub / github.com/documentationjs/documentation / returnsSection

Function returnsSection

src/output/markdown_ast.js:174–188  ·  view source on GitHub ↗
(comment)

Source from the content-addressed store, hash-verified

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 (

Callers 1

generateFunction · 0.85

Calls 1

formatTypeFunction · 0.85

Tested by

no test coverage detected