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

Function printExamplesArray

packages/tools/docgen/src/Printer.ts:97–102  ·  view source on GitHub ↗
(examples: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

95const printThrowsArray = (throws?: ReadonlyArray<string>): string => printArray("Throws", throws)
96
97const printExamplesArray = (examples: ReadonlyArray<string>): string => {
98 if (examples.length === 0) {
99 return ""
100 }
101 return examples.map((ex) => "\n\n**Example**\n\n" + printFence(ex)).join("")
102}
103
104const printOptionalSince = (since: ReadonlyArray<string>): string => {
105 if (since.length === 0) {

Callers 1

printModelFunction · 0.85

Calls 3

printFenceFunction · 0.85
joinMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected