(
score: number,
options?: { skipBold?: boolean },
)
| 36 | } |
| 37 | |
| 38 | export function formatScoreWithColor( |
| 39 | score: number, |
| 40 | options?: { skipBold?: boolean }, |
| 41 | ): InlineText { |
| 42 | const styledNumber = options?.skipBold |
| 43 | ? formatReportScore(score) |
| 44 | : md.bold(formatReportScore(score)); |
| 45 | return md`${scoreMarker(score)} ${styledNumber}`; |
| 46 | } |
| 47 | |
| 48 | export type MarkerShape = 'circle' | 'square'; |
| 49 | export type ScoreColors = 'red' | 'yellow' | 'green'; |
no test coverage detected