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

Function renderChange

packages/tools/api-diff/src/Report.ts:15–23  ·  view source on GitHub ↗
(change: ApiChange, level = 4)

Source from the content-addressed store, hash-verified

13 source === undefined ? [] : ["", `${label}:`, "", "```ts", source, "```"]
14
15const renderChange = (change: ApiChange, level = 4): ReadonlyArray<string> => [
16 `${"#".repeat(level)} ${change.classification}: \`${changeLabel(change)}\``,
17 "",
18 `Confidence: ${change.confidence.toFixed(3)} · ${change.authoritative ? "authoritative" : "review required"}`,
19 ...(change.reviewNotes === undefined ? [] : ["", change.reviewNotes]),
20 ...signature("Before", change.before),
21 ...signature("After", change.after),
22 ""
23]
24
25const orderedGroups = [
26 ["Renames and moves", new Set(["api-moved", "api-renamed"])],

Callers 1

renderMarkdownReportFunction · 0.85

Calls 2

changeLabelFunction · 0.85
signatureFunction · 0.70

Tested by

no test coverage detected