( entry: MigrationEntry, annotation: MigrationAnnotation, example: string )
| 223 | } |
| 224 | |
| 225 | const renderDetailedEntry = ( |
| 226 | entry: MigrationEntry, |
| 227 | annotation: MigrationAnnotation, |
| 228 | example: string |
| 229 | ): ReadonlyArray<string> => [ |
| 230 | `#### ${codeSpan(displayApiId(entry.id))}`, |
| 231 | "", |
| 232 | `**Replacement:** ${codeSpan(annotation.replacement)}`, |
| 233 | "", |
| 234 | escapeAnnotationText(annotation.note), |
| 235 | "", |
| 236 | "**Example**", |
| 237 | "", |
| 238 | "```ts", |
| 239 | example, |
| 240 | "```", |
| 241 | "" |
| 242 | ] |
| 243 | |
| 244 | const renderCompactEntry = ( |
| 245 | entry: MigrationEntry, |
no test coverage detected