( entry: MigrationEntry, annotation: MigrationAnnotation | undefined )
| 258 | } |
| 259 | |
| 260 | const renderCompactEntry = ( |
| 261 | entry: MigrationEntry, |
| 262 | annotation: MigrationAnnotation | undefined |
| 263 | ): string => { |
| 264 | if (annotation !== undefined) { |
| 265 | return `- ${codeSpan(displayApiId(entry.id))} -> ${codeSpan(annotation.replacement)}: ${ |
| 266 | escapeAnnotationText(annotation.note) |
| 267 | }` |
| 268 | } |
| 269 | const target = entry.rename?.headApiId |
| 270 | return target === undefined |
| 271 | ? `- ${codeSpan(displayApiId(entry.id))}: TODO: needs guidance` |
| 272 | : `- ${codeSpan(displayApiId(entry.id))} -> ${codeSpan(displayApiId(stableApiId(target)))}: TODO: needs guidance` |
| 273 | } |
| 274 | |
| 275 | export const extractImportMapSections = (document: string): string => { |
| 276 | const start = document.indexOf("## Import Map") |
no test coverage detected