(m)
| 283 | }); |
| 284 | |
| 285 | function formatReturns(m) { |
| 286 | const returns = m.returns; |
| 287 | if (!returns || returns.length === 0) { |
| 288 | return ''; |
| 289 | } |
| 290 | let type = returns[0].type; |
| 291 | |
| 292 | // handle anonymous type definitions, e.g |
| 293 | // { arg: 'info', type: { count: 'number' } } |
| 294 | if (typeof type === 'object' && !Array.isArray(type)) |
| 295 | type = 'object'; |
| 296 | |
| 297 | return type ? ':' + type : ''; |
| 298 | } |
| 299 | |
| 300 | function formatMethod(m) { |
| 301 | const arr = []; |
no outgoing calls
no test coverage detected
searching dependent graphs…