| 456 | }; |
| 457 | |
| 458 | const getPropComment = symbol => { |
| 459 | // Doesn't work too good with the JsDocTags losing indentation. |
| 460 | // But used only in props should be fine. |
| 461 | const comment = symbol.getDocumentationComment(); |
| 462 | const tags = symbol.getJsDocTags(); |
| 463 | if (comment && comment.length) { |
| 464 | return comment |
| 465 | .map(c => c.text) |
| 466 | .concat( |
| 467 | tags.map(t => |
| 468 | ['@', t.name].concat((t.text || []).map(e => e.text)) |
| 469 | ) |
| 470 | ) |
| 471 | .join('\n'); |
| 472 | } |
| 473 | return ''; |
| 474 | }; |
| 475 | |
| 476 | const getPropsForFunctionalComponent = type => { |
| 477 | const callSignatures = type.getCallSignatures(); |
no outgoing calls
no test coverage detected
searching dependent graphs…