( entry: MigrationEntry, annotation: MigrationAnnotation, example: string )
| 236 | } |
| 237 | |
| 238 | const renderDetailedEntry = ( |
| 239 | entry: MigrationEntry, |
| 240 | annotation: MigrationAnnotation, |
| 241 | example: string |
| 242 | ): ReadonlyArray<string> => { |
| 243 | const fence = backtickDelimiter(example, 3) |
| 244 | return [ |
| 245 | `#### ${codeSpan(displayApiId(entry.id))}`, |
| 246 | "", |
| 247 | `**Replacement:** ${codeSpan(annotation.replacement)}`, |
| 248 | "", |
| 249 | escapeAnnotationText(annotation.note), |
| 250 | "", |
| 251 | "**Example**", |
| 252 | "", |
| 253 | `${fence}ts`, |
| 254 | example, |
| 255 | fence, |
| 256 | "" |
| 257 | ] |
| 258 | } |
| 259 | |
| 260 | const renderCompactEntry = ( |
| 261 | entry: MigrationEntry, |
no test coverage detected