MCPcopy
hub / github.com/plotly/dash / getPropComment

Function getPropComment

dash/extract-meta.js:458–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();

Callers 1

getPropsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…