(
comment: {summary?: {text: string}[]} | undefined,
)
| 54 | ): string | undefined => parts?.map(({text}) => text).join(''); |
| 55 | |
| 56 | const getCommentTexts = ( |
| 57 | comment: {summary?: {text: string}[]} | undefined, |
| 58 | ): [string, string | undefined] | [undefined, undefined] => { |
| 59 | const text = getCommentText(comment?.summary); |
| 60 | if (!text) { |
| 61 | return [undefined, undefined]; |
| 62 | } |
| 63 | const lineBreak = text.indexOf('\n\n'); |
| 64 | return lineBreak > -1 |
| 65 | ? [text.slice(0, lineBreak), text.slice(lineBreak)] |
| 66 | : [text, undefined]; |
| 67 | }; |
| 68 | |
| 69 | const getReflectionMarkdown = (reflection: any): string[] => |
| 70 | [ |
no test coverage detected
searching dependent graphs…