MCPcopy Create free account
hub / github.com/Effect-TS/effect / renderDetailedEntry

Function renderDetailedEntry

packages/tools/api-diff/src/MigrationDoc.ts:225–242  ·  view source on GitHub ↗
(
  entry: MigrationEntry,
  annotation: MigrationAnnotation,
  example: string
)

Source from the content-addressed store, hash-verified

223}
224
225const 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
244const renderCompactEntry = (
245 entry: MigrationEntry,

Callers 1

renderMigrationDocumentFunction · 0.85

Calls 3

codeSpanFunction · 0.85
displayApiIdFunction · 0.85
escapeAnnotationTextFunction · 0.85

Tested by

no test coverage detected