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

Function renderDetailedEntry

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

Source from the content-addressed store, hash-verified

236}
237
238const 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
260const renderCompactEntry = (
261 entry: MigrationEntry,

Callers 1

renderMigrationDocumentFunction · 0.85

Calls 4

backtickDelimiterFunction · 0.85
displayApiIdFunction · 0.85
escapeAnnotationTextFunction · 0.85
codeSpanFunction · 0.70

Tested by

no test coverage detected