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

Function throwsSection

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

Source from the content-addressed store, hash-verified

188 }
189
190 function throwsSection(comment) {
191 return (
192 comment.throws.length > 0 &&
193 u(
194 'list',
195 { ordered: false, spread: false },
196 comment.throws.map(returns =>
197 u('listItem', [
198 u(
199 'paragraph',
200 [
201 u('text', 'Throws '),
202 u('strong', formatType(returns.type)),
203 u('text', ' ')
204 ].concat(
205 returns.description ? returns.description.children : []
206 )
207 )
208 ])
209 )
210 )
211 );
212 }
213
214 function augmentsLink(comment) {
215 return (

Callers 1

generateFunction · 0.85

Calls 1

formatTypeFunction · 0.85

Tested by

no test coverage detected